diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-07-02 08:46:18 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-07-02 12:15:28 +0100 |
commit | bc8f0ed7042280282035168428f6afc839997cf0 (patch) | |
tree | a03b1499a32468ac5133c8909839c2b2663bec08 /gcc/tree-ssa-loop-im.c | |
parent | 496e1d6a1f973b3952a37163441f9149501dfb26 (diff) | |
download | gcc-bc8f0ed7042280282035168428f6afc839997cf0.zip gcc-bc8f0ed7042280282035168428f6afc839997cf0.tar.gz gcc-bc8f0ed7042280282035168428f6afc839997cf0.tar.bz2 |
libstdc++: Revert changes to std::unique_ptr<T[]>::operator[] [PR 101271]
This reverts the changes in r12-1778 which added a noexcept-specifier to
std::unique_ptr<T[]>::operator[], and the changes in r12-1844 which
tried to make it work with incomplete types (for PR 101236).
The noexcept-specifier is not required by the standard, and is causing
regressions, so just remove it.
Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:
PR libstdc++/101271
* include/bits/unique_ptr.h (unique_ptr<T[],D>::operator[]):
Remove noexcept-specifier.
(unique_ptr<T[],D>::_S_nothrow_deref): Remove.
* testsuite/20_util/unique_ptr/lwg2762.cc: Remove checks for
operator[].
Diffstat (limited to 'gcc/tree-ssa-loop-im.c')
0 files changed, 0 insertions, 0 deletions