aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppdefault.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-12-03 17:08:01 +0000
committerJonathan Wakely <jwakely@redhat.com>2020-12-03 17:08:01 +0000
commit91cfacc4b5d317b12a3bdcd798273a581568f645 (patch)
tree8a0ccc7af231d5bb384b1ae116d356e0afc85024 /gcc/cppdefault.c
parenteb8c2b30b947dd8a2012ee658117bea05e46bc85 (diff)
downloadgcc-91cfacc4b5d317b12a3bdcd798273a581568f645.zip
gcc-91cfacc4b5d317b12a3bdcd798273a581568f645.tar.gz
gcc-91cfacc4b5d317b12a3bdcd798273a581568f645.tar.bz2
libstdc++: Disable std::array assertions for C++11 constexpr
The recent changes to add assertions to std::array broke the functions that need to be constexpr in C++11, because of the restrictive rules for constexpr functions in C++11. This simply disables the assertions for C++11 mode, so the functions can be constexpr again. libstdc++-v3/ChangeLog: * include/std/array (array::operator[](size_t) const, array::front() const) (array::back() const) [__cplusplus == 201103]: Disable assertions. * testsuite/23_containers/array/element_access/constexpr_element_access.cc: Check for correct values. * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust dg-error line numbers. * testsuite/23_containers/array/debug/constexpr_c++11.cc: New test.
Diffstat (limited to 'gcc/cppdefault.c')
0 files changed, 0 insertions, 0 deletions