www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22993] New: Missing quotes in octal literal hint


          Issue ID: 22993
           Summary: Missing quotes in octal literal hint
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: moonlightsentinel disroot.org

Forum post: https://forum.dlang.org/thread/mfgwplpfozkdhblvkfgo forum.dlang.org

User code:  auto w = 01777777777777777777777;
Suggestion: std.conv.octal!1777777777777777777777

The suggestion fails with `Error: integer overflow` because the literal is
assumed to be in base 10.

Apr 06 2022