[Bug c/44517] New: improve diagnostic for mispelled typename in function declaration
manu at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jun 13 13:26:00 GMT 2010
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
More information about the Gcc-bugs
mailing list