[erlang-bugs] Internal error in beam_dead when using maps in guards

Tony Rogvall tony@REDACTED
Mon Mar 3 11:37:34 CET 2014


Keep them coming!   ;-)

I guess Ericsson could buy a copy of quickcheck and get some nice tests
to replicate what you are doing ?

Pretty cool stuff!

/Tony


On 3 mar 2014, at 08:41, Ulf Norell <ulf.norell@REDACTED> wrote:

> 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
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://erlang.org/mailman/listinfo/erlang-bugs

"Installing applications can lead to corruption over time. Applications gradually write over each other's libraries, partial upgrades occur, user and system errors happen, and minute changes may be unnoticeable and difficult to fix"



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20140303/bf7b7999/attachment.htm>


More information about the erlang-bugs mailing list