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: unassignedclangb...@nondot.org
          Reporter: pavel.kryu...@phystech.edu
                CC: llvm-bugs@lists.llvm.org, mclow.li...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to