[llvm-bugs] [Bug 34224] New: Standards violation regarding multiple c-char literals

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 17 11:11:11 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=34224

            Bug ID: 34224
           Summary: Standards violation regarding multiple c-char literals
           Product: clang
           Version: 3.9
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: aartz at blizzard.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

Created attachment 18999
  --> https://bugs.llvm.org/attachment.cgi?id=18999&action=edit
Test file

The C++ standard states
"A char32_t literal containing multiple c-chars is ill-formed."

However with -Wall and -Werror, I get no notification that this is improper -
and though Visual Studio also supports the same behavior, which I suspect the
reason works at all, the results are not consistent with Visual Studio.

Attached will return different results for Clang and Visual Studio and produce
no warnings or errors on either.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170817/f25310df/attachment.html>


More information about the llvm-bugs mailing list