https://bugs.llvm.org/show_bug.cgi?id=40185
Bug ID: 40185
Summary: c11: Warning instead of error for missing type
specifier.
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Test case (prog.c):
int main()
{
typedef t;
}
Compilation command line:
clang prog.c -Wall -Wextra -std=c11 -pedantic-errors
Observed behaviour:
The following warnings were outputed:
prog.c:3:13: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
typedef t;
~~~~~~~ ^
prog.c:3:13: warning: unused typedef 't' [-Wunused-local-typedef]
2 warnings generated.
Expected behaviour:
The first warning should be an error instead since -pedantic-errors was
used.
Note:
GCC gives the expected error.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs