[Issue 17656] New: Enum member circular reference error

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Jul 15 17:38:07 PDT 2017


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

          Issue ID: 17656
           Summary: Enum member circular reference error
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: syniurge at gmail.com

enum E {
    AAA = S.BBB
}

struct S {
    enum SZAQ = E.AAA;
    enum BBB = 8080;
}

~~~~~

Error: enum member E.AAA circular reference to enum member

~~~~~

S doesn't have to be a struct, this occurs with any ScopeDsymbol or import.

--


More information about the Digitalmars-d-bugs mailing list