Testcase: int foo(int x, pid_t y) { return x+y; }
gcc-4.6: clang-5.c:1:16: error: expected declaration specifiers or ... before pid_t foo clang-5.c: In function foo: clang-5.c:2:12: error: y undeclared (first use in this function) clang-5.c:2:12: note: each undeclared identifier is reported only once for each function it appears in clang: t.c:1:16: error: unknown type name 'pid_t' int foo(int x, pid_t y) { ^ -- Summary: improve diagnostic for mispelled typename in function declaration Product: gcc Version: unknown Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: manu at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44517