]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix noexcept-specifier for ranges::empty
authorJonathan Wakely <jwakely@redhat.com>
Mon, 14 Jun 2021 21:42:05 +0000 (22:42 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 26 Apr 2022 13:11:01 +0000 (14:11 +0100)
commit01c72ccad94e4f7b71504e502cba43d62b658143
tree956011ae111b958198a7843a7cd8c798e51b7417
parentdcd1fc4900fd101f8fa22883b6ac31e6f7601373
libstdc++: Fix noexcept-specifier for ranges::empty

Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:

* include/bits/range_access.h (ranges::empty): Check whether
conversion to bool can throw.
* testsuite/std/ranges/access/empty.cc: Check for correct
noexcept-specifier.

(cherry picked from commit f9598d89a9f5a327ecdfa6f6978a0cfbe4447111)
libstdc++-v3/include/bits/range_access.h
libstdc++-v3/testsuite/std/ranges/access/empty.cc