[llvm-bugs] [Bug 35054] New: basic_string_view<char> operator""sv(const char*, size_t) should be noexcept

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 24 04:45:43 PDT 2017


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

            Bug ID: 35054
           Summary: basic_string_view<char> operator""sv(const char*,
                    size_t) should be noexcept
           Product: libc++
           Version: 5.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: pavel.kryukov at phystech.edu
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

`string_view` literal operators should have 'noexcept' specifier according to
the C++17 standard:
https://github.com/cplusplus/draft/blob/4ba4e9c2c04b7680ac2a56b65c241ec10c427c3f/source/strings.tex#L4611

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.
https://github.com/llvm-mirror/libcxx/blob/f45f32b0254e4107b4165ddc99ca2503ab9bd754/include/string_view#L763

The same bug in GCC: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82685

-- 
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/20171024/fecc51d8/attachment-0001.html>


More information about the llvm-bugs mailing list