https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96250
Bug ID: 96250 Summary: d: Field access in parentheses causes error: need 'this' for 'field' of type 'type' Product: gcc Version: 10.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gdcproject dot org Target Milestone: --- The front-end cannot resolve the 'this' pointer when a field is accessed within parentheses. And yet double-parentheses has no problems. --- struct S { int[] table; void print() { ((table)).noop(); // OK (table).noop(); // Error table.noop(); // OK } } void noop(int[]) {}