www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20449] New: integer literal specification and implementation

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

          Issue ID: 20449
           Summary: integer literal specification and implementation
                    differs
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dlang.org
          Assignee: nobody puremagic.com
          Reporter: bugzilla d-ecke.de

void main()
{
    auto x = 9223372036854775808; // long.max + 1
}

compilation fails, but specs on https://dlang.org/spec/lex.html#integerliteral
tell, that it will not.

See https://forum.dlang.org/post/unesuebhxinmoqzhzhbb forum.dlang.org

--
Dec 14 2019