[erlang-bugs] Internal error in beam_dead when using maps in guards
Ulf Norell
ulf.norell@REDACTED
Mon Mar 3 08:41:56 CET 2014
Replacing the map #{} makes the error go away.
-module(bug).
f() when is_map(#{}); false -> ok.
$ erl
Erlang/OTP 17 [RELEASE CANDIDATE 2] [erts-6.0] [source-a74e66a] [64-bit]
[smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V6.0 (abort with ^G)
1> c(bug).
Function f/0 refers to undefined label 6
bug.erl: internal error in beam_dead;
crash reason: {case_clause,{'EXIT',{undefined_label,6}}}
in function compile:'-select_passes/2-anonymous-2-'/2 (compile.erl, line
493)
in call from compile:'-internal_comp/4-anonymous-1-'/2 (compile.erl, line
290)
in call from compile:fold_comp/3 (compile.erl, line 308)
in call from compile:internal_comp/4 (compile.erl, line 292)
in call from compile:'-do_compile/2-anonymous-0-'/2 (compile.erl, line
153)
bug.erl:2: Warning: function f/0 is unused
error
/ Ulf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20140303/bdd71b2b/attachment.htm>
More information about the erlang-bugs
mailing list