[LLVMbugs] [Bug 7977] New: clang complains about two-byte wide char L' Â '

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Aug 23 18:43:36 PDT 2010


           Summary: clang complains about two-byte wide char L'Â'
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=5406)
 --> (http://llvm.org/bugs/attachment.cgi?id=5406)

The attached testcase doesn't seem to be parsed correctly by clang:

  ~$ g++ widechar.cc -o widechar
  ~$ ./widechar
  ~$ llvm/Debug+Asserts/bin/clang++ widechar.cc -o widechar
  widechar.cc:4:15: warning: extraneous characters in wide character constant
    wchar_t c = L'Â';
  1 warning generated.
  ~$ ./widechar

The two-byte character literal is 0xc3 0x82.

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