[Issue 15561] New: std.typecons.Proxy gets NaN comparisons wrong
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Jan 12 17:42:39 PST 2016
https://issues.dlang.org/show_bug.cgi?id=15561
Issue ID: 15561
Summary: std.typecons.Proxy gets NaN comparisons wrong
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: john.loughran.colvin at gmail.com
Let's see it in action in std.typecons.Typedef:
alias MyFloat = Typedef!float;
unittest
{
MyFloat a,b;
assert(a!=b);
assert(!(a<b));
assert(!(a>b));
assert(!(a>=b)); //fails
assert(!(a<=a)); //fails
}
--
More information about the Digitalmars-d-bugs
mailing list