[Issue 17244] Undefined comparison of struct arrays is allowed
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 2 02:13:10 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=17244
Bolpat <qs.il.paperinik at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |qs.il.paperinik at gmail.com
--- Comment #2 from Bolpat <qs.il.paperinik at gmail.com> ---
Probably part of the same problem:
float[1] xs = [ float.nan ];
assert(!(xs[0] <= xs[0] || xs[0] >= xs[0]));
assert(xs != xs);
assert(xs <= xs && xs >= xs);
Especially the last two lines are very odd. No type should have that behavior.
--
More information about the Digitalmars-d-bugs
mailing list