www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23173] New: "Error: signed integer overflow" when mixing in a

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

          Issue ID: 23173
           Summary: "Error: signed integer overflow" when mixing in a
                    `long.min` assignment
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: zorael gmail.com

Arch/Manjaro x86_64, dmd 2.100.0.

void main()
{
    mixin("long l = ", long.min, ";");
}

// Error: signed integer overflow

int works.

--
Jun 08 2022