[Issue 10503] New: Octal enums don't work anymore

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 29 10:47:54 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10503

           Summary: Octal enums don't work anymore
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: hsteoh at quickfur.ath.cx


--- Comment #0 from hsteoh at quickfur.ath.cx 2013-06-29 10:47:52 PDT ---
CODE:
=============================
import std.conv;
enum {
    A = octal!"2000000",
    B = octal!"4000"
}

void main() {
}
=============================

DMD git HEAD:
=============================
test.d(4): Error: cannot implicitly convert expression (octal) of type pure
nothrow @property @safe int() to pure nothrow @property @safe int()
=============================

git bisect shows that the offending commit was
88ebe192d605bd8d4b5768e8a2500f54d73fb5fd

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list