http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52825
Mikael Pettersson <mikpe at it dot uu.se> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikpe at it dot uu.se --- Comment #1 from Mikael Pettersson <mikpe at it dot uu.se> 2012-04-02 07:09:49 UTC --- Also happens with gcc 4.6, 4.5, and 4.4. gcc 4.3 and older just print "passing argument 1 of 'f' from incompatible pointer type" without trying to show the corresponding types. The problem is that gcc incorrectly refers to the type foo from 'typedef struct {...} foo;' (note: no struct tag) as 'struct foo' in the diagnostic.