[Issue 20479] New: octal integer literals don't work with BetterC mode

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 4 01:56:58 UTC 2020


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

          Issue ID: 20479
           Summary: octal integer literals don't work with BetterC mode
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: bitworld at qq.com

import std.conv : octal;

extern(C) void main()
{
    enum a = octal!167; // bug
    enum b = octal!"167"; // ok
}

--


More information about the Digitalmars-d-bugs mailing list