[erlang-bugs] Compiler bug

Paulo Sérgio Almeida <>
Tue May 19 23:43:54 CEST 2009


Hi,

when compiling a file under R13B I got a compiler error. I isolated the 
problem to the file attached below. The compiler crashes as:

Function loop/2 refers to undefined label 4
./bug.erl:none: internal error in beam_peep;
crash reason: {{case_clause,{'EXIT',{undefined_label,4}}},
                [{compile,'-select_passes/2-anonymous-2-',2},
                 {compile,'-internal_comp/4-anonymous-1-',2},
                 {compile,fold_comp,3},
                 {compile,internal_comp,4},
                 {compile,internal,3}]}

The error goes away if I replace the "case" with the "andalso" or if I 
replace the invocaton of collect/3 with collect/2.

Regards,
Paulo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug.erl
Type: text/x-erlang
Size: 426 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20090519/b662ab27/attachment.bin>


More information about the erlang-bugs mailing list