You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Running erlc with +no_copt +no_bool_opt +no_ssa_opt on the following code:
f() ->
[0 || (X= (trueor (X=is_port(node()))))].
results in the following error:
type_conflict:1: function f/0+10:
Internal consistency check failed - please report this bug.
Instruction: {select_val,{x,1},
{f,7},
{list,[{atom,false},{f,8},{atom,true},{f,9}]}}
Error: {type_conflict,{t_atom,[false]},{t_atom,[false]}}:
I have not managed to reproduce this bug with default options for erlc, but I am reporting it anyway in case it is revealing a more serious problem.
Expected behavior
From the name of the options, I expected them to only affect optimizations, and not transformations that are required for correctness.
Describe the bug
Running
erlc
with+no_copt +no_bool_opt +no_ssa_opt
on the following code:results in the following error:
I have not managed to reproduce this bug with default options for
erlc
, but I am reporting it anyway in case it is revealing a more serious problem.Expected behavior
From the name of the options, I expected them to only affect optimizations, and not transformations that are required for correctness.
Affected versions
The text was updated successfully, but these errors were encountered: