aboutsummaryrefslogtreecommitdiff
path: root/gcc/genoutput.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-03-22 15:15:12 +0000
committerJonathan Wakely <jwakely@redhat.com>2021-03-22 15:56:49 +0000
commit00b46c00c8d9003c61e8f817668ad3380e16fedb (patch)
tree44e489704c82932669387f011fdc5be1f22a17ed /gcc/genoutput.c
parent87e3c2ef682e2ba7692ee56142a4eb5b6441c4d3 (diff)
downloadgcc-00b46c00c8d9003c61e8f817668ad3380e16fedb.zip
gcc-00b46c00c8d9003c61e8f817668ad3380e16fedb.tar.gz
gcc-00b46c00c8d9003c61e8f817668ad3380e16fedb.tar.bz2
libstdc++: Add noexcept to std::begin etc as per LWG 2280 and 3537
This implements the proposed changes for LWG 3537 (which we're allowed to do as an extension whatever the outcome of the issue). I noticed we didn't implement LWG 2280 completely, as the std::begin and std::end overloads for arrays were not noexcept. libstdc++-v3/ChangeLog: * include/bits/range_access.h (begin(T (&)[N]), end(T (&)[N])): Add missing 'noexcept' as per LWG 2280. (rbegin(T (&)[N]), rend(T (&)[N]), rbegin(initializer_list<T>)) (rend(initializer_list<T>)): Add 'noexcept' as per LWG 3537. * testsuite/24_iterators/range_access/range_access.cc: Check for expected noexcept specifiers. Check result types of generic std::begin and std::end overloads. * testsuite/24_iterators/range_access/range_access_cpp14.cc: Check for expected noexcept specifiers. * testsuite/24_iterators/range_access/range_access_cpp17.cc: Likewise.
Diffstat (limited to 'gcc/genoutput.c')
0 files changed, 0 insertions, 0 deletions