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.
Comment #1 by dlang-bugzilla — 2017-07-17T04:14:11Z
Changing the order of the declarations makes it compile.
Comment #2 by razvan.nitu1305 — 2018-06-18T14:55:47Z