Testcase:
struct foo { int x; }
typedef int bar;
gcc-4.6:
clang-6.c:3:9: error: two or more data types in declaration specifiers
Notice the line and the column are far away from the problem.
clang:
t.c:1:22: error: expected ';' after struct
struct foo { int x; }
^
;
--
Summary: improve message for missing ";" after struct
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=44519