<div dir="ltr"><div>This one crashes in a different place but likely for the same reason.</div><div><br></div><div>-module(bug).</div><div>f() -> </div><div> case true of</div><div> #{} -> error;</div><div> true -> ok</div>
<div> end.</div><div><br></div><div>$ erl</div><div>Erlang/OTP 17 [RELEASE CANDIDATE 2] [erts-6.0] [source-a74e66a] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]</div><div><br></div><div>Eshell V6.0 (abort with ^G)</div>
<div>1> c(bug).</div><div>Function: f/0</div><div>bug.erl: internal error in core_fold_module;</div><div>crash reason: function_clause</div><div><br></div><div> in function sys_core_fold:opt_bool_clauses/3</div><div>
called as sys_core_fold:opt_bool_clauses([],true,false)</div><div> in call from sys_core_fold:opt_bool_clauses/3 (sys_core_fold.erl, line 1815)</div><div> in call from sys_core_fold:opt_bool_clauses/1 (sys_core_fold.erl, line 1790)</div>
<div> in call from sys_core_fold:opt_bool_case/1 (sys_core_fold.erl, line 1779)</div><div> in call from sys_core_fold:expr/3 (sys_core_fold.erl, line 347)</div><div> in call from sys_core_fold:opt_simple_let_1/4 (sys_core_fold.erl, line 2562)</div>
<div> in call from sys_core_fold:expr/3 (sys_core_fold.erl, line 355)</div><div> in call from sys_core_fold:expr/3 (sys_core_fold.erl, line 279)</div><div>bug.erl:2: Warning: function f/0 is unused</div><div>error</div>
<div><br></div><div>/ Ulf</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 4, 2014 at 9:42 AM, Ulf Norell <span dir="ltr"><<a href="mailto:ulf.norell@quviq.com" target="_blank">ulf.norell@quviq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>-module(bug).</div><div>f() -> </div><div> case maybe_map of</div><div> #{} -> ok;</div>
<div> not_map -> error</div><div> end.</div><div><br></div><div>$ erl</div><div>Erlang/OTP 17 [RELEASE CANDIDATE 2] [erts-6.0] [source-a74e66a] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]</div>
<div><br></div><div>Eshell V6.0 (abort with ^G)</div><div>1> c(bug).</div><div>Function: f/0</div><div>bug.erl: internal error in core_fold_module;</div><div>crash reason: {case_clause,{none}}</div><div><br></div><div>
in function sys_core_fold:will_match/2 (sys_core_fold.erl, line 1748)</div><div> in call from sys_core_fold:clauses/5 (sys_core_fold.erl, line 1701)</div><div> in call from sys_core_fold:clauses/5 (sys_core_fold.erl, line 1718)</div>
<div> in call from sys_core_fold:expr/3 (sys_core_fold.erl, line 352)</div><div> in call from sys_core_fold:clause/4 (sys_core_fold.erl, line 1481)</div><div> in call from sys_core_fold:clauses/5 (sys_core_fold.erl, line 1699)</div>
<div> in call from sys_core_fold:expr/3 (sys_core_fold.erl, line 352)</div><div> in call from sys_core_fold:expr/3 (sys_core_fold.erl, line 279)</div><div>bug.erl:2: Warning: function f/0 is unused</div><div>error</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>/ Ulf</div><div><br></div></font></span></div>
</blockquote></div><br></div>