http://llvm.org/bugs/show_bug.cgi?id=10295
Summary: Problem with preprocessor with keep comments
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=6846)
--> (http://llvm.org/bugs/attachment.cgi?id=6846)
Test Case
If you use
clang -E -CC test.c on the following snippet as test.c, you get this error:
# 1 "/home/step/c-files/bug_8438.c"
# 1 "/home/step/c-files/bug_8438.c" 1
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 132 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "/home/step/c-files/bug_8438.c" 2
/* hurz *//home/step/c-files/bug_8438.c:3:47: error: token is not a valid
binary operator in a preprocessor subexpression
#if defined __LCC__ /* Compiler = LCC
~~~~~~~~~~~~~~~~~~~~~~~ ^
main() { return 1; }
1 error generated.
--
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