<div dir="ltr"><div>Sorry for the spam, this is the last one :).</div><div><br></div><div>-module(bug).</div><div>f() -> receive _ -> ok after [] -> timeout end.</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_block;</div><div>crash reason: {case_clause,</div><div>    {'EXIT',</div>
<div>
        {function_clause,</div><div>            [{beam_utils,live_opt,</div><div>                 [[{wait_timeout,{f,5},nil},</div><div>                   {label,6},</div><div>                   return,</div><div>                   {block,</div>

<div>                       [{set,[],[],remove_message},</div><div>                        {set,[{x,0}],[{atom,ok}],move}]},</div><div>                   {loop_rec,{f,6},{x,0}},</div><div>                   {label,5},</div>

<div>                   {line,[{location,"bug.erl",2}]},</div><div>                   {label,2}],</div><div>                  0,</div><div>                  {1,{1,0,nil,nil}},</div><div>                  [timeout,</div>

<div>                   {block,</div><div>                       [{'%live',0},</div><div>                        {set,[{x,0}],[{atom,timeout}],move},</div><div>                        {'%live',1}]},</div>
<div>
                   return]],</div><div>                 [{file,"beam_utils.erl"},{line,645}]},</div><div>             {beam_utils,live_opt,1,[{file,"beam_utils.erl"},{line,207}]},</div><div>             {beam_block,function,2,[{file,"beam_block.erl"},{line,38}]},</div>

<div>             {lists,mapfoldl,3,[{file,"lists.erl"},{line,1352}]},</div><div>             {beam_block,module,2,[{file,"beam_block.erl"},{line,29}]},</div><div>             {compile,'-select_passes/2-anonymous-2-',2,</div>

<div>                 [{file,"compile.erl"},{line,493}]},</div><div>             {compile,'-internal_comp/4-anonymous-1-',2,</div><div>                 [{file,"compile.erl"},{line,290}]},</div>

<div>             {compile,fold_comp,3,[{file,"compile.erl"},{line,308}]}]}}}</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_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>  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>