[Issue 12799] New: Forward reference to nested enum with struct.sizeof

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun May 25 00:24:25 PDT 2014


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

          Issue ID: 12799
           Summary: Forward reference to nested enum with struct.sizeof
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: dfj1esp02 at sneakemail.com

struct A
{
  enum C=A.sizeof;
  enum D=C; //Error: forward reference of variable C
  int a;
}

--


More information about the Digitalmars-d-bugs mailing list