<div dir="ltr"><div>I started generating map expressions in the program generator. First of many:</div><div><br></div><div>-module(bug).</div><div>f() -> #{[] => 0, a => 1}.</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 v3_codegen;</div><div>crash reason: {case_clause,{'EXIT',{{case_clause,{{{atom,a},{integer,1}},{nil,{integer,0}}}},</div><div>                      [{v3_codegen,'-map_pair_strip_and_termsort/1-anonymous-1-',</div>

<div>                                   2,</div><div>                                   [{file,"v3_codegen.erl"},{line,1554}]},</div><div>                       {lists,sort,2,[{file,"lists.erl"},{line,967}]},</div>

<div>                       {v3_codegen,set_cg,6,</div><div>                                   [{file,"v3_codegen.erl"},{line,1522}]},</div><div>                       {v3_codegen,'-cg_list/5-anonymous-0-',3,</div>

<div>                                   [{file,"v3_codegen.erl"},{line,190}]},</div><div>                       {v3_codegen,flatmapfoldl,3,</div><div>                                   [{file,"v3_codegen.erl"},{line,2161}]},</div>

<div>                       {v3_codegen,cg_list,5,</div><div>                                   [{file,"v3_codegen.erl"},{line,189}]},</div><div>                       {v3_codegen,cg_block,5,</div><div>                                   [{file,"v3_codegen.erl"},{line,437}]},</div>

<div>                       {v3_codegen,block_cg,4,</div><div>                                   [{file,"v3_codegen.erl"},{line,422}]}]}}}</div><div><br></div><div>  in function  compile:'-select_passes/2-anonymous-2-'/2 (compile.erl, line 493)</div>

<div>  in call from compile:'-internal_comp/4-anonymous-1-'/2 (compile.erl, line 290)</div><div>  in call from compile:fold_comp/3 (compile.erl, line 308)</div><div>  in call from compile:internal_comp/4 (compile.erl, line 292)</div>

<div>  in call from compile:'-do_compile/2-anonymous-0-'/2 (compile.erl, line 153)</div><div>bug.erl:2: Warning: function f/0 is unused</div><div>error</div><div><br></div><div>/ Ulf</div></div>