Bug 20953 – Unexpected CTFE double literals behavior

Status
NEW
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-06-18T15:17:47Z
Last change time
2024-12-13T19:09:23Z
Keywords
CTFE
Assigned to
No Owner
Creator
Илья Ярошенко
Moved to GitHub: dmd#19725 →

Comments

Comment #0 by ilyayaroshenko — 2020-06-18T15:17:47Z
The issue description depends on Issue https://issues.dlang.org/show_bug.cgi?id=20951 Pass: auto d = 1.448997445238699; assert(d == 0x1.72f17f1f49aaep+0); Failed: assert(1.448997445238699 == 0x1.72f17f1f49aaep+0); Please note, that for both cases the valid literal value is NOT 0x1.72f17f1f49aaep+0 but 0x1.72f17f1f49aadp+0, see also the Issue 20951. Probably the last assert uses real to parse the literal, which isn't correct because it is a double literal.
Comment #1 by robert.schadek — 2024-12-13T19:09:23Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19725 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB