[LLVMbugs] [Bug 2220] New: Poor diagnostic

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Apr 13 07:39:12 PDT 2008


http://llvm.org/bugs/show_bug.cgi?id=2220

           Summary: Poor diagnostic
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: NetBSD
            Status: NEW
          Severity: minor
          Priority: P2
         Component: preprocessor
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: neil at daikokuya.co.uk
                CC: llvmbugs at cs.uiuc.edu


Clang claims that * is not a valid token in preprocessor expressions, but  it
is of course.  Clang accepted the first one!

$ clang /tmp/expr.c
/tmp/expr.c:1:9: error: token is not valid in preprocessor expressions
#if 1 * * 2
        ^
1 diagnostic 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