gcc -Wall -ansi -pedantic -fsyntax-only erroneously accepts the following:
void bar(void); void (*baz(void))(void) { return bar ? bar: (void *)(void *) 0; } -- Summary: GCC accepts invalid code Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: neil at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21794