Tested aarch64-linux. Pushed to trunk. -- >8 --
This overload of std::generator::promise_type::yield_value calls things which might throw, so should not be noexcept. The noexcept was remove by LWG 3894. libstdc++-v3/ChangeLog: * include/std/generator (promise_type::yield_value): Remove noexcept from fourth overload, as per LWG 3894. --- libstdc++-v3/include/std/generator | 1 - 1 file changed, 1 deletion(-) diff --git a/libstdc++-v3/include/std/generator b/libstdc++-v3/include/std/generator index e7ef5ddfdd3..87983ee5e7c 100644 --- a/libstdc++-v3/include/std/generator +++ b/libstdc++-v3/include/std/generator @@ -155,7 +155,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION requires convertible_to<ranges::range_reference_t<_R>, _Yielded> auto yield_value(ranges::elements_of<_R, _Alloc> __r) - noexcept { auto __n = [] (allocator_arg_t, _Alloc, ranges::iterator_t<_R> __i, -- 2.43.0