[erlang-bugs] Compiler crash in compile:fold_comp/3

Hunter Morris <>
Thu Nov 20 19:26:17 CET 2008

The following code (tested with R12B4 or R12B5, vanilla compiler
options) produces a compiler crash.  It's nonsensical, and I realise
that andalso can be quite evil, but it's a crash nonetheless.



foo(Bar) when is_integer(Bar) andalso Bar =:= 0; Bar =:= 1 ->

The crash looks like:
Function foo/1 refers to undefined label 6
./test.erl:none: internal error in beam_dead;
crash reason: {{case_clause,{'EXIT',{undefined_label,6}}},

Best regards,
~Hunter Morris

More information about the erlang-bugs mailing list