<html>
    <head>
      <base href="https://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 --- - Clang could emit a better diagnostic when an apostrophe is used as digit separator in -std=c++11" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24277&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=XkcFDvhgDVbRhaiPEzMrYnn5jlq-uKZYcKvrOM3h5-c&s=Dxu4hmjI0PvT2JrLR97PPogu6S4LO_h_R4wdSPfPHH8&e=">24277</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang could emit a better diagnostic when an apostrophe is used as digit separator in -std=c++11
          </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>Windows NT
          </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++14
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>davide@freebsd.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The following is completely fine in C++14:
constexpr auto blah = 10'000'000;

but it's not in C++11/03/98:

% ./clang++ constexpr.cpp -std=c++11
constexpr.cpp:1:25: error: expected ';' after top level declarator
constexpr auto blah = 10'000'000;
                        ^
                        ;
1 error generated.

Clang could probably emit (if possible) a slightly better diagnostic, e.g.
"using apostrophe as digit separator is only allowed in C++14" or "apostrophe
as digit separator is a C++14 feature".</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>