https://issues.dlang.org/show_bug.cgi?id=12882
Issue ID: 12882
Summary: Parser ^^ operator results in invalid result
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
import std.stdio;
void main() {
real a = -2;
real b = -2.1;
(a ^^ b).writeln;
(-2 ^^ -2.1).writeln;
}
Output:
-nan
-0.233258
Should be nan in both cases.
--
