8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Running erlc on the following code:
erlc
-export([start/0]). f1() -> f6(catch (true = ok), -0.0). f3() -> f6(ok, 0.0). f6(_, _) -> ok. start() -> f1(), f3(), f6(ok, ok).
Results in the following error:
test745_mini:1: function f1/0+12: Internal consistency check failed - please report this bug. Instruction: {call_last,2,{f,8},1} Error: {bad_arg_type,{x,1}, {t_float,{-0.0,-0.0}}, {t_union,{t_atom,[ok]}, none, {t_float,{0.0,0.0}}, none,none}}:
Affected versions master
Additional context It looks possibly related to #7168 and the OTP 27 change that will make +0.0 =:= -0.0 return false.
+0.0 =:= -0.0
The text was updated successfully, but these errors were encountered:
A slightly simpler testcase:
-export([start/0]). f1(_) -> ok. f4() -> f1(0.0). f8() -> f1(-0.0). start() -> f1(ok), f4(), f8().
Sorry, something went wrong.
Merge pull request #7902 from jhogberg/john/compiler/float-confusion/G…
a5064e9
…H-7901 compiler: Fix some vestigial +0.0/-0.0 issues
jhogberg
Successfully merging a pull request may close this issue.
Describe the bug
Running
erlc
on the following code:Results in the following error:
Affected versions
master
Additional context
It looks possibly related to #7168 and the OTP 27 change that will make
+0.0 =:= -0.0
return false.The text was updated successfully, but these errors were encountered: