gcc/libstdc++-v3/include/bits
Jonathan Wakely bc8f0ed704 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[].
2021-07-02 12:15:28 +01:00
..
algorithmfwd.h
align.h
alloc_traits.h libstdc++: Fix Doxygen warnings 2021-04-06 16:43:24 +01:00
allocated_ptr.h
allocator.h libstdc++: Add warnings for some C++23 deprecations 2021-06-09 10:32:43 +01:00
atomic_base.h libstdc++: Fix Wrong param type in :atomic_ref<_Tp*>::wait [PR100889] 2021-06-08 15:55:10 -07:00
atomic_futex.h
atomic_timed_wait.h libstdc++: Fix semaphore to work with system_clock timeouts 2021-04-22 17:35:00 +01:00
atomic_wait.h libstdc++: Fix wrong thread waking on notify [PR100334] 2021-05-17 12:05:06 -07:00
basic_ios.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
basic_ios.tcc libstdc++: Implement LWG 581 for std:ostream::flush() 2021-06-25 18:47:39 +01:00
basic_string.h libstdc++: Simplify constexpr checks in std::char_traits [PR 91488] 2021-06-17 22:00:58 +01:00
basic_string.tcc libstdc++: Use std::addressof to avoid ADL for operator& [PR 60497] 2021-04-30 14:57:40 +01:00
boost_concept_check.h
c++0x_warning.h
c++config libstdc++: Use __builtin_unreachable for constexpr assertions [PR 100676] 2021-05-20 20:49:57 +01:00
char_traits.h libstdc++: Simplify constexpr checks in std::char_traits [PR 91488] 2021-06-17 22:00:58 +01:00
charconv.h
codecvt.h
concept_check.h
cpp_type_traits.h
deque.tcc libstdc++: Use std::addressof to avoid ADL for operator& [PR 60497] 2021-04-30 14:57:40 +01:00
enable_special_members.h
erase_if.h
forward_list.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
forward_list.tcc
fs_dir.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
fs_fwd.h libstdc++: Improvements to Doxygen markup 2021-07-01 18:45:48 +01:00
fs_ops.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
fs_path.h libstdc++: Improvements to Doxygen markup 2021-07-01 18:45:48 +01:00
fstream.tcc
functexcept.h
functional_hash.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
gslice_array.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
gslice.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
hashtable_policy.h libstdc++: Value-initialize objects held by EBO helpers [PR 100863] 2021-06-02 13:33:41 +01:00
hashtable.h libstdc++: Add feature test macro for heterogeneous lookup in unordered containers 2021-06-04 15:59:37 +01:00
indirect_array.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
invoke.h
ios_base.h
istream.tcc libstdc++: Implement LWG 415 for std::ws 2021-06-28 13:34:49 +01:00
iterator_concepts.h libstdc++: Implement P2325 changes to default-constructibility of views 2021-06-17 22:29:03 -04:00
list.tcc
locale_classes.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
locale_classes.tcc
locale_conv.h
locale_facets_nonio.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
locale_facets_nonio.tcc
locale_facets.h libstdc++: diagnose some misuses of [locale.convenience] functions [PR 89728] 2021-05-17 17:58:14 +01:00
locale_facets.tcc
localefwd.h
mask_array.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
max_size_type.h libstdc++: Fix Doxygen warnings 2021-04-06 16:43:24 +01:00
memoryfwd.h libstdc++: Fix missing members in std::allocator<void> 2021-05-11 16:11:01 +01:00
move.h libstdc++: Add nodiscard attribute to cast-like functions 2021-04-06 16:43:25 +01:00
node_handle.h
ostream_insert.h
ostream.tcc libstdc++: Avoid intercepting exception in ostream::write 2021-06-25 18:47:44 +01:00
parse_numbers.h
postypes.h libstdc++: Remove GLIBCXX_CHECK_INT64_T checks 2021-04-30 20:30:46 +01:00
predefined_ops.h
ptr_traits.h
quoted_string.h
random.h libstdc++: Improve Doxygen documentation groups [PR 101258] 2021-07-01 00:25:46 +01:00
random.tcc libstdc++: Improve Doxygen documentation groups [PR 101258] 2021-07-01 00:25:46 +01:00
range_access.h
ranges_algo.h libstdc++: Reduce ranges::minmax/minmax_element comparison complexity 2021-06-18 19:33:39 -04:00
ranges_algobase.h
ranges_base.h libstdc++: Implement P2325 changes to default-constructibility of views 2021-06-17 22:29:03 -04:00
ranges_cmp.h libstdc++: Sync __cpp_lib_ranges macro defined in ranges_cmp.h 2021-06-21 09:45:31 -04:00
ranges_uninitialized.h
ranges_util.h libstdc++: Move ranges algos used by <ranges> into ranges_util.h 2021-06-17 22:44:41 -04:00
refwrap.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
regex_automaton.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
regex_automaton.tcc
regex_compiler.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
regex_compiler.tcc
regex_constants.h libstdc++: Fix more doxygen markup for group close commands 2021-04-08 21:42:58 +01:00
regex_error.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
regex_executor.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
regex_executor.tcc
regex_scanner.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
regex_scanner.tcc
regex.h libstdc++: Fix Doxygen warnings 2021-04-06 16:43:24 +01:00
regex.tcc
semaphore_base.h libstdc++: Fix for deadlock in std::counting_semaphore [PR100806] 2021-06-22 11:06:07 -07:00
shared_ptr_atomic.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
shared_ptr_base.h libstdc++: Implement LWG 2762 for std::unique_ptr::operator* 2021-06-24 14:04:02 +01:00
shared_ptr.h libstdc++: Reject std::make_shared<T[]> [PR 99006] 2021-04-22 15:49:27 +01:00
slice_array.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
specfun.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
sstream.tcc
std_abs.h
std_function.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
std_mutex.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
std_thread.h libstdc++: Add missing noexcept on std::thread member function [PR 100298] 2021-04-28 12:45:49 +01:00
stl_algo.h
stl_algobase.h libstdc++: Improve static assert messages 2021-05-06 16:07:10 +01:00
stl_bvector.h
stl_construct.h
stl_deque.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
stl_function.h
stl_heap.h
stl_iterator_base_funcs.h
stl_iterator_base_types.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
stl_iterator.h libstdc++: Implement LWG 3546 changes to common_iterator 2021-06-18 20:50:13 -04:00
stl_list.h
stl_map.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
stl_multimap.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
stl_multiset.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
stl_numeric.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
stl_pair.h libstdc++: Simplify std::pair constraints using concepts 2021-04-28 17:56:51 +01:00
stl_queue.h
stl_raw_storage_iter.h
stl_relops.h
stl_set.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
stl_stack.h
stl_tempbuf.h
stl_tree.h libstdc++: Use std::addressof to avoid ADL for operator& [PR 60497] 2021-04-30 14:57:40 +01:00
stl_uninitialized.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
stl_vector.h
stream_iterator.h libstdc++: Implement P2325 changes to default-constructibility of views 2021-06-17 22:29:03 -04:00
streambuf_iterator.h libstdc++: Fix even more doxygen markup for group close commands 2021-04-09 13:09:23 +01:00
streambuf.tcc libstdc++: Remove redundant explicit instantiations 2021-06-28 15:16:08 +01:00
string_view.tcc
stringfwd.h
this_thread_sleep.h libstdc++: Improve Doxygen documentation groups [PR 101258] 2021-07-01 00:25:46 +01:00
uniform_int_dist.h
unique_lock.h
unique_ptr.h libstdc++: Revert changes to std::unique_ptr<T[]>::operator[] [PR 101271] 2021-07-02 12:15:28 +01:00
unordered_map.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
unordered_set.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
uses_allocator_args.h libstdc++: Fix even more doxygen markup for group close commands 2021-04-09 13:09:23 +01:00
uses_allocator.h
valarray_after.h
valarray_array.h
valarray_array.tcc
valarray_before.h
vector.tcc libstdc++: Use std::addressof to avoid ADL for operator& [PR 60497] 2021-04-30 14:57:40 +01:00