<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - basic_string_view<char> operator""sv(const char*, size_t) should be noexcept"
   href="https://bugs.llvm.org/show_bug.cgi?id=35054">35054</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>basic_string_view<char> operator""sv(const char*, size_t) should be noexcept
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libc++
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.0
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>pavel.kryukov@phystech.edu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>`string_view` literal operators should have 'noexcept' specifier according to
the C++17 standard:
<a href="https://github.com/cplusplus/draft/blob/4ba4e9c2c04b7680ac2a56b65c241ec10c427c3f/source/strings.tex#L4611">https://github.com/cplusplus/draft/blob/4ba4e9c2c04b7680ac2a56b65c241ec10c427c3f/source/strings.tex#L4611</a>

Currently libc++ implements the literal operators via
`basic_string_view<_charT>(const _charT*, size_t)` ctor which are not specified
as `noexcept` according to the same standard.
<a href="https://github.com/llvm-mirror/libcxx/blob/f45f32b0254e4107b4165ddc99ca2503ab9bd754/include/string_view#L763">https://github.com/llvm-mirror/libcxx/blob/f45f32b0254e4107b4165ddc99ca2503ab9bd754/include/string_view#L763</a>

The same bug in GCC: <a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82685">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82685</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>