[Bug c++/17821] Poor diagnostic
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Oct 4 00:30:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-04 00:30 -------
A related testcase works correctly (if we change A to a function instead):
void A(int);
struct B {
int i;
};
struct C {
struct B* p;
};
int main() {
struct C c;
A(c.p->i);
A(c.p.i);
return 0;
}
----
pr17821.c:11: error: request for member `i' in non-class type `B*'
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2004-10-04 00:30:29
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17821
More information about the Gcc-bugs
mailing list