[erlang-bugs] Compiler crash in compile:fold_comp/3
Hunter Morris
huntermorris@REDACTED
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.
-module(test).
-export([foo/1]).
foo(Bar) when is_integer(Bar) andalso Bar =:= 0; Bar =:= 1 ->
ok.
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}}},
[{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}]}
Best regards,
~Hunter Morris
More information about the erlang-bugs
mailing list