www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17656] New: Enum member circular reference error

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 puremagic.com
          Reporter: syniurge 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.

--
Jul 15