<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - reserved-user-defined-literal warning or error?"
   href="http://llvm.org/bugs/show_bug.cgi?id=20162">20162</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>reserved-user-defined-literal warning or error?
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ruslan_baratov@yahoo.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Since '-W' family options is for warnings expected that this code will be
compiled without errors:

<span class="quote">> cat foo.cpp</span >
#define N
const char* x = "abc"N;

But compilation failed with *error* (instead of just reporting warning note):
<span class="quote">> clang++ -std=c++11 foo.cpp</span >
foo.cpp:2:22: error: invalid suffix on literal; C++11 requires a space between
literal and identifier [-Wreserved-user-defined-literal]
const char* x = "abc"N;
                     ^
1 error generated.

<span class="quote">> echo $?</span >
1

clang version:
<a href="http://llvm.org/git/clang@92b1476ea6c20682a5dc59bec72da06512bcd405">http://llvm.org/git/clang@92b1476ea6c20682a5dc59bec72da06512bcd405</a>
<a href="http://llvm.org/git/llvm@a1ff0aed40d1df9e8336d23eb53db0620a046e81">http://llvm.org/git/llvm@a1ff0aed40d1df9e8336d23eb53db0620a046e81</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>