http://llvm.org/bugs/show_bug.cgi?id=2477
Summary: clang misparses "//*" in C89 mode
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: preprocessor
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [email protected]
Testcase:
int a(int x) {return x//**/;
+x;}
In C99/GNU/C++ modes, this should return x+x. However, in C89 mode, this
should return x. clang currently gets this wrong in C89 mode.
It would probably be a good idea to warn for this construct.
--
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