https://bugs.llvm.org/show_bug.cgi?id=40088
Bug ID: 40088
Summary: Accepts ill-formed C11 program with redundant extern
in declaration that does not declare anything.
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangb...@nondot.org
Reporter: anders.granlun...@gmail.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
neeil...@live.com, richard-l...@metafoo.co.uk
Test case (prog.c)
int main()
{
struct S;
extern struct S;
}
Compilation command:
clang prog.c -std=c11 -pedantic-errors
Expected output:
An error message since we are using -pedantic-errors and the second
declaration does not declare anything.
Actual output:
No error message.
Note:
gcc correctly reject this program with an error message.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs