http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56980
Bug #: 56980 Summary: Misleading note Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: ja...@gcc.gnu.org CC: m...@gcc.gnu.org Starting with http://gcc.gnu.org/r139729 we get: typedef struct A { int i; } B; void foo (B *); void bar (B *x) { foo ((struct B *) x); } rh952692.c:2:6: note: expected ‘struct B *’ but argument is of type ‘struct B *’ which is misleading, it should be either B * or struct A * in the first case.