[LLVMbugs] [Bug 17705] New: bad error message on incorrect string literal

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Oct 27 12:55:42 PDT 2013


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

            Bug ID: 17705
           Summary: bad error message on incorrect string literal
           Product: clang
           Version: 3.2
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: vanyacpp at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

linefeed should not be printed inside quotes. Instead error should be something
like "invalid newline character in raw string delimiter".

5.cpp:1:21: error: invalid character '
' character in raw string delimiter; use PREFIX( )PREFIX to delimit raw string
char const* a = R"";
                    ^
5.cpp:1:17: error: expected expression
char const* a = R"";
                ^
2 errors generated.

-- 
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/20131027/de3e8b90/attachment.html>


More information about the llvm-bugs mailing list