Problem with bit syntax compilation
Robert Virding
rv@REDACTED
Tue Apr 17 18:58:07 CEST 2001
"Jouni Ryno" <jouni.ryno@REDACTED> writes:
>From the following code
>
>-module(test).
>
>error(Test) ->
> if
> Test == 1 ->
> Problem = 1;
> Test == 2 ->
> Problem = 2
> end,
> Dummy = 1,
> OKbin = <<Test:7, Dummy:9>>, % used only to prove, that it works
>normally
> MyBin = [<<Test:7, Problem:9>>, OKbin].
>
>I get compilation error from erlc test.erl (eshell V5.0.2
>
>/proj/cosima/egse/test.erl:none: internal error in v3_codegen;
>crash reason: {{case_clause,{'EXIT',{function_clause,
> [{v3_codegen,fetch_reg,['Problem
> ...
This is a compiler bug which has been fixed in the next release. The
way around it is as someone already has shown. The warning should be
printed AFTER the compiler error trace.
Robert
--
Robert Virding Tel: +46 (0)8 545 55 017
Alteon Web Systems Email: rv@REDACTED
S:t Eriksgatan 44 WWW: http://www.bluetail.com/~rv
SE-112 34 Stockholm, SWEDEN
"Folk säger att jag inte bryr mig om någonting, men det skiter jag i".
More information about the erlang-questions
mailing list