Hi,<div> When compiling the attached file I get the following error</div><div><br></div><div>$ erlc bug.erl</div><div><div>./bug.erl:none: internal error in expand_module;</div><div>crash reason: {function_clause,</div><div>
[{sys_expand_pmod,expr,</div><div> [{b_generate,5,</div><div> {bin,5,</div><div> [{bin_element,5,</div><div> {var,5,'A'},</div>
<div> {integer,5,1},</div><div> [integer,{unit,1},unsigned,big]}]},</div><div> {bin,5,</div><div> [{bin_element,5,</div>
<div> {integer,5,12345},</div><div> {integer,5,8},</div><div> [integer,{unit,1},unsigned,big]}]}},</div><div> {pmod,</div>
<div> ['I'],</div><div> [{module_info,0},{module_info,1}],</div><div> [{buggy_fun,0},{module_info,0},{module_info,1}],</div><div> [{module_info,0},{module_info,1}]}]},</div>
<div> {sys_expand_pmod,lc_quals,2},</div><div> {sys_expand_pmod,expr,2},</div><div> {sys_expand_pmod,exprs,2},</div><div> {sys_expand_pmod,clause,2},</div>
<div> {sys_expand_pmod,clauses,2},</div><div> {sys_expand_pmod,function,4},</div><div> {sys_expand_pmod,form,2}]}</div><div><br></div><div><br></div><div> The same works fine when I remove the module parameters. Any idea why this would be happening?<br>
-- <br>Regards,<br>Jebu Ittiachen<br>
</div></div>