https://issues.dlang.org/show_bug.cgi?id=22214
--- Comment #1 from FeepingCreature <default_357-line at yahoo.de> ---
Simplified:
struct S
{
struct T
{
}
}
void main() {
const S s;
static if (__traits(compiles, { auto t = s.T; }))
{
auto t = s.T;
}
}
--