diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2017-04-28 13:56:53 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-04-28 13:56:53 +0100 |
commit | b26f45f0694604745bbb3d269cacecefd28b4faf (patch) | |
tree | e6ff20fa205ecfc3e0c7d6c978c8066aa11c02ff /gcc | |
parent | 38233afdcff80a2bb7ec7693f0d71497facbdd3b (diff) | |
download | gcc-b26f45f0694604745bbb3d269cacecefd28b4faf.zip gcc-b26f45f0694604745bbb3d269cacecefd28b4faf.tar.gz gcc-b26f45f0694604745bbb3d269cacecefd28b4faf.tar.bz2 |
PR libstdc++/80553 don't allow destroying non-destructible types
PR libstdc++/80553
* include/bits/stl_construct.h (_Destroy, _Destroy_n): Add static
assertions to ensure type is destructible.
(destroy_at, destroy, destroy_n): Move from stl_uninitialized.h.
* include/bits/stl_uninitialized.h (destroy_at, destroy, destroy_n):
Move to stl_construct.h.
* testsuite/20_util/specialized_algorithms/memory_management_tools/
destroy_neg.cc: New test.
* testsuite/23_containers/vector/cons/destructible_neg.cc: New test.
From-SVN: r247379
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions