[committed] libstdc++: Add noexcept specifiers to some range adaptors

Jonathan Wakely jwakely@redhat.com
Wed Jun 16 13:40:37 GMT 2021


On Tue, 15 Jun 2021 at 19:32, Jonathan Wakely wrote:
>
> Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
>
> libstdc++-v3/ChangeLog:
>
>         * include/bits/ranges_util.h (view_interface): Add noexcept to
>         empty, operator bool, data and size members.
>         (subrange): Add noexcept to constructors.
>         * include/std/ranges (single_view, ref_view): Add noexcept to
>         constructors.
>         (views::single, views::all): Add noexcept.
>         * testsuite/std/ranges/adaptors/all.cc: Check noexcept.
>         * testsuite/std/ranges/single_view.cc: Likewise.
>
> Tested powerpc64le-linux. Committed to trunk.

This one also breaks modules, but seems to be a bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101095

If the compiler bug isn't fixed quickly I'll probably have to remove
the new noexcept-specifiers from the subrange constructors.



More information about the Gcc-patches mailing list