compiler bug

Bjorn Gustavsson <>
Thu Aug 17 11:07:38 CEST 2006


Thanks!

I have added the code to the test suite for the compiler,
but I will probably not have time to correct the bug for
the R11B-1 release.

/Bjorn

Martin Bjorklund <> writes:

> I found this compiler bug, in R10B-10 and R11B-0.
> 
> nassa otp_src_R11B-0> bin/erlc ~/src/w.erl
> Function -w/0-fun-2-/1 refers to undefined label 11
> /home/mbj/src/w.erl:none: internal error in beam_clean;
> crash reason: {{case_clause,{'EXIT',{undefined_label,11}}},
>                [{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}]}
> 
> 
> And the file:
> 
> -module(w).
> -export([w/0]).
> 
> w() ->
>     G = fun() -> ok end,
>     try
> 	fun() -> ok end
>     after
> 	fun({A, B}) -> A + B end
>     end.
> 
> 
> /martin
> 

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list