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.
Showing
- libstdc++-v3/include/bits/alloc_traits.h 1 addition, 1 deletionlibstdc++-v3/include/bits/alloc_traits.h
- libstdc++-v3/include/bits/stl_construct.h 2 additions, 2 deletionslibstdc++-v3/include/bits/stl_construct.h
- libstdc++-v3/testsuite/23_containers/vector/cons/destroy-adl.cc 11 additions, 0 deletions...c++-v3/testsuite/23_containers/vector/cons/destroy-adl.cc
Loading
Please register or sign in to comment