[LLVMbugs] [Bug 2477] New: clang misparses "//*" in C89 mode

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Jun 20 13:16:56 PDT 2008


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: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


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.



More information about the llvm-bugs mailing list