[Issue 20449] New: integer literal specification and implementation differs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 14 10:31:27 UTC 2019


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 at puremagic.com
          Reporter: bugzilla at 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

--


More information about the Digitalmars-d-bugs mailing list