Bug 13581 – disallow NaN as AA key value

Status
NEW
Severity
enhancement
Priority
P4
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-10-07T00:03:25Z
Last change time
2024-12-07T13:34:24Z
Assigned to
No Owner
Creator
Martin Nowak
See also
https://issues.dlang.org/show_bug.cgi?id=13420
Moved to GitHub: dmd#17285 →

Comments

Comment #0 by code — 2014-10-07T00:03:25Z
There should be a runtime check in the AA code that prevents from using floating point NaN as key value, as this value doesn't compare equal to itself.
Comment #1 by dlang-bugzilla — 2014-10-07T00:05:10Z
See also issue 13420
Comment #2 by robert.schadek — 2024-12-07T13:34:24Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17285 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB