http://llvm.org/bugs/show_bug.cgi?id=12665
Bug #: 12665
Summary: Fail to diagnose violation of C99 6.9 (empty
translation unit)
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 8457
--> http://llvm.org/bugs/attachment.cgi?id=8457
test case
C99 6.9 requires that translation unit must contain at least one external def
http://c0x.coding-guidelines.com/6.9.html
But clang fails to diagnose the violation.
GCC will detect it:
gcc -std=c99 -pedantic -c empty.c
empty.c:7: warning: ISO C forbids an empty translation unit
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs