<div dir="ltr">That doesn't seem to have fixed it completely. The following gives exactly the same error:<div><br></div><div><div>-module(bug).</div><div>f() when true; #{} andalso false -> ok.</div></div><div><br></div>

<div>/ Ulf</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 3, 2014 at 2:13 PM, Anthony Ramine <span dir="ltr"><<a href="mailto:n.oxyde@gmail.com" target="_blank">n.oxyde@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><a href="https://github.com/erlang/otp/pull/260" target="_blank">https://github.com/erlang/otp/pull/260</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Anthony Ramine<br>
<br>
Le 3 mars 2014 à 10:15, Anthony Ramine <<a href="mailto:n.oxyde@gmail.com">n.oxyde@gmail.com</a>> a écrit :<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> This one is due to beam_bool not seeing that {f,6} is used in a put_map instruction in the block preceding the one it is trying to optimise.<br>
><br>
> I have a fix but IRL work is calling me, will submit it later.<br>
><br>
> --<br>
> Anthony Ramine<br>
><br>
> Le 3 mars 2014 à 08:41, Ulf Norell <<a href="mailto:ulf.norell@quviq.com">ulf.norell@quviq.com</a>> a écrit :<br>
><br>
>> Replacing the map #{} makes the error go away.<br>
>><br>
>> -module(bug).<br>
>> f() when is_map(#{}); false -> ok.<br>
>><br>
>> $ erl<br>
>> Erlang/OTP 17 [RELEASE CANDIDATE 2] [erts-6.0] [source-a74e66a] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]<br>
>><br>
>> Eshell V6.0  (abort with ^G)<br>
>> 1> c(bug).<br>
>> Function f/0 refers to undefined label 6<br>
>> bug.erl: internal error in beam_dead;<br>
>> crash reason: {case_clause,{'EXIT',{undefined_label,6}}}<br>
>><br>
>>  in function  compile:'-select_passes/2-anonymous-2-'/2 (compile.erl, line 493)<br>
>>  in call from compile:'-internal_comp/4-anonymous-1-'/2 (compile.erl, line 290)<br>
>>  in call from compile:fold_comp/3 (compile.erl, line 308)<br>
>>  in call from compile:internal_comp/4 (compile.erl, line 292)<br>
>>  in call from compile:'-do_compile/2-anonymous-0-'/2 (compile.erl, line 153)<br>
>> bug.erl:2: Warning: function f/0 is unused<br>
>> error<br>
>><br>
>> / Ulf<br>
>> _______________________________________________<br>
>> erlang-bugs mailing list<br>
>> <a href="mailto:erlang-bugs@erlang.org">erlang-bugs@erlang.org</a><br>
>> <a href="http://erlang.org/mailman/listinfo/erlang-bugs" target="_blank">http://erlang.org/mailman/listinfo/erlang-bugs</a><br>
><br>
<br>
_______________________________________________<br>
erlang-bugs mailing list<br>
<a href="mailto:erlang-bugs@erlang.org">erlang-bugs@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-bugs" target="_blank">http://erlang.org/mailman/listinfo/erlang-bugs</a><br>
</div></div></blockquote></div><br></div>