<div dir="ltr"><div>-module(bug).</div><div>f() when erlang:float(self()); true -> ok.</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 beam_bool;</div><div>crash reason: {case_clause,</div><div> {'EXIT',</div>
<div>
{{badmatch,</div><div> {[{set,[{tmp,0}],[],{bif,self,{f,6}}},</div><div> {set,[{tmp,1}],[{tmp,0}],{alloc,1,{gc_bif,float,{f,6}}}}],</div><div> []}},</div><div> [{beam_bool,bopt_tree,3,[{file,"beam_bool.erl"},{line,394}]},</div>
<div> {beam_bool,bopt_tree_cg,3,[{file,"beam_bool.erl"},{line,360}]},</div><div> {beam_bool,bopt_block,5,[{file,"beam_bool.erl"},{line,115}]},</div><div> {beam_bool,bopt,3,[{file,"beam_bool.erl"},{line,76}]},</div>
<div> {beam_bool,function,2,[{file,"beam_bool.erl"},{line,57}]},</div><div> {lists,mapfoldl,3,[{file,"lists.erl"},{line,1352}]},</div><div> {beam_bool,module,2,[{file,"beam_bool.erl"},{line,36}]},</div>
<div> {compile,'-select_passes/2-anonymous-2-',2,</div><div> [{file,"compile.erl"},{line,493}]}]}}}</div><div><br></div><div> in function io_lib_pretty:cind_tag_tuple/7 (io_lib_pretty.erl, line 638)</div>
<div> in call from io_lib_pretty:cind_element/7 (io_lib_pretty.erl, line 727)</div><div> in call from io_lib_pretty:cind_tail/8 (io_lib_pretty.erl, line 710)</div><div> in call from io_lib_pretty:cind_element/7 (io_lib_pretty.erl, line 727)</div>
<div> in call from io_lib_pretty:cind_list/7 (io_lib_pretty.erl, line 697)</div><div> in call from io_lib_pretty:cind_element/7 (io_lib_pretty.erl, line 727)</div><div> in call from io_lib_pretty:cind_list/7 (io_lib_pretty.erl, line 697)</div>
<div> in call from io_lib_pretty:cind_element/7 (io_lib_pretty.erl, line 727)</div><div>bug.erl:2: Warning: function f/0 is unused</div><div>error</div><div><br></div><div>/ Ulf</div></div>