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
--
https://issues.dlang.org/show_bug.cgi?id=19190
Yuxuan Shui changed:
What|Removed |Added
Severity|enhancement |normal
--- Comment #4 from Yuxuan Shui ---
Th
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
--
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
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;
}