[Bug d/96250] New: d: Field access in parentheses causes error: need 'this' for 'field' of type 'type'
ibuclaw at gdcproject dot org
gcc-bugzilla@gcc.gnu.org
Mon Jul 20 12:08:13 GMT 2020
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[]) {}
More information about the Gcc-bugs
mailing list