--- struct S { int i; } struct S1 { S s; } void f(int) { } void main() { S1 s1; f(s1.s.tupleof); // OK f((s1.s).tupleof); // Error: need 'this' to access member s } ---
*** This issue has been marked as a duplicate of issue 9460 ***
Issue # 9460 relates to using stringof on templated classes. This bug doesn't seem to have anything to do with that. So, if this a duplicate of another bug, it's a bug other than issue # 9460.
It's the same problem with parens, whatever is the DotVarExp/DorIdExp, they are solved at the same place and the parens cause the same issue. So this Happens when Id == Id.tupleof, Id == Id.stringof, Id.length etc. All of them.
Yes it was actually another but I've lost it. Searches on bugzilla are aweful
It was https://issues.dlang.org/show_bug.cgi?id=9490, looks very similar right ?
*** This issue has been marked as a duplicate of issue 9490 ***