[Issue 19190] Circular reference error resolved by getting allMembers

2019-05-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19190 --- Comment #5 from Yuxuan Shui --- This code even triggers an "Error: unknown": https://run.dlang.io/is/ntQYrl --

[Issue 19190] Circular reference error resolved by getting allMembers

2019-05-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19190 Yuxuan Shui changed: What|Removed |Added Severity|enhancement |normal --- Comment #4 from Yuxuan Shui --- Th

[Issue 19190] Circular reference error resolved by getting allMembers

2019-05-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19190 --- Comment #3 from Yuxuan Shui --- The behavior is changed since 2.069.2, as run.dlang.io shows: https://run.dlang.io/is/lOtIDw --

[Issue 19190] Circular reference error resolved by getting allMembers

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19190 --- Comment #2 from Yuxuan Shui --- The behavior of the compiler seems to be sensitive to pragma: ... // This is the second `gen` template gen(T: S*, S) { private alias rc = proxy!S; pragma(msg, is(typeof(rc.str))); // false //pragma(msg

[Issue 19190] Circular reference error resolved by getting allMembers

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19190 --- Comment #1 from Yuxuan Shui --- Sorry, wrong version of the code is attached. Here is the offending code: struct lr1 { lr1* a; } template proxy(T) { private alias G = gen!T; static if (is(typeof(G.str))) enum str = G.str; }