This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/82685] basic_string_view<char> operator""sv(const char*, size_t) should be noexcept
- From: "pavel.kryukov at phystech dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 24 Oct 2017 17:56:03 +0000
- Subject: [Bug libstdc++/82685] basic_string_view<char> operator""sv(const char*, size_t) should be noexcept
- Auto-submitted: auto-generated
- References: <bug-82685-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82685
--- Comment #9 from Pavel I. Kryukov <pavel.kryukov at phystech dot edu> ---
Ok, no problem.
> N.B. the compiler already gives the right answer when asked:
>
> #include <string_view>
> using namespace std::literals::string_view_literals;
> static_assert(noexcept(""sv"));
JFYI, Clang gives a wrong answer to that
(https://bugs.llvm.org/show_bug.cgi?id=15481).