compiler bug

Martin Bjorklund <>
Wed Aug 16 12:09:57 CEST 2006


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



More information about the erlang-questions mailing list