www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17125] New: Header Generation Incorrectly Formats Floating

https://issues.dlang.org/show_bug.cgi?id=17125

          Issue ID: 17125
           Summary: Header Generation Incorrectly Formats Floating Point
                    Number
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: sprink.noreply gmail.com

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'

--
Jan 28 2017