www.digitalmars.com         C & C++   DMDScript  

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


          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 2017