Bug 17125 – Header Generation Incorrectly Formats Floating Point Number
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2017-01-28T19:07:19Z
Last change time
2019-12-14T11:11:27Z
Keywords
pull
Assigned to
No Owner
Creator
Sprink
Comments
Comment #0 by sprink.noreply — 2017-01-28T19:07:19Z
void func(real value = 1.3e5L)
{
}
The above code generates the following header:
void func(real value = 130000.L);
But "130000.L" isn't a valid number and gives a compile error:
Error: no property 'L' for type 'int'
Comment #1 by dlang-bot — 2019-12-11T19:07:36Z
@cristiancreteanu updated dlang/dmd pull request #10634 "Issue17125 - Header Generation Incorrectly Formats Floating Point Number" fixing this issue:
- Fix Issue 17125 - Header Generation Incorrectly Formats Floating Point Number
https://github.com/dlang/dmd/pull/10634
Comment #2 by dlang-bot — 2019-12-14T11:11:27Z
dlang/dmd pull request #10634 "Issue17125 - Header Generation Incorrectly Formats Floating Point Number" was merged into master:
- 0b9cb4ee9373ed76a712895910649fd9e6b6821b by Cristian Creteanu:
Fix Issue 17125 - Header Generation Incorrectly Formats Floating Point Number
https://github.com/dlang/dmd/pull/10634