[LLVMbugs] [Bug 10295] New: Problem with preprocessor with keep comments

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 7 05:52:09 PDT 2011


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: unassignedclangbugs at nondot.org
        ReportedBy: cullmann at absint.de
                CC: llvmbugs at cs.uiuc.edu


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.



More information about the llvm-bugs mailing list