]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Qualify calls to std::_Destroy and _Destroy_aux
authorJonathan Wakely <jwakely@redhat.com>
Fri, 30 Jun 2023 20:09:01 +0000 (21:09 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 18 Mar 2024 11:28:50 +0000 (11:28 +0000)
commit5c4cd53ffd70205b2b136661b3be175dec0ce8d7
tree54411e5057707d7aca0aff6d8f10159ac05937bc
parentae8302e18f15f0befb372762b20a3a790a19a925
libstdc++: Qualify calls to std::_Destroy and _Destroy_aux

These calls should be qualified to prevent ADL, which can cause errors
for incomplete types that are associated classes.

libstdc++-v3/ChangeLog:

* include/bits/alloc_traits.h (_Destroy): Qualify call.
* include/bits/stl_construct.h (_Destroy, _Destroy_n): Likewise.
* testsuite/23_containers/vector/cons/destroy-adl.cc: New test.

(cherry picked from commit 33245d6b87a284495304c9952813b6b83d5df99f)
libstdc++-v3/include/bits/alloc_traits.h
libstdc++-v3/include/bits/stl_construct.h
libstdc++-v3/testsuite/23_containers/vector/cons/destroy-adl.cc [new file with mode: 0644]