[LLVMbugs] [Bug 4499] New: clang rejects valid character constants beginning with three backslashes

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jul 2 15:09:16 PDT 2009


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

           Summary: clang rejects valid character constants beginning with
                    three backslashes
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


Testcase:
int t1 = '\\\'';
int t2 = '\\\\';
int t3 = '\\\
';

All of these should be accepted (the first two are multi-character character
constants).

Additional testcase:
int t4 = '\\\';  // Invalid, but currently prints a random
                 // large number of diagnostics

Issue found by code inspection.


-- 
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