aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-data-ref.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2018-06-20 20:34:53 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2018-06-20 20:34:53 +0100
commite70359b3de997b4c582345ab7da8cccb253cc6d9 (patch)
tree48fbab8f2d64a4655d84cfcf5ba470a5926751bd /gcc/tree-data-ref.c
parentc1456656842bef093d73e1f324eb49b94db87203 (diff)
downloadgcc-e70359b3de997b4c582345ab7da8cccb253cc6d9.zip
gcc-e70359b3de997b4c582345ab7da8cccb253cc6d9.tar.gz
gcc-e70359b3de997b4c582345ab7da8cccb253cc6d9.tar.bz2
PR libstdc++/70966 make pmr::new_delete_resource() immortal
Construct the program-wide resource objects using placement new. This means they have dynamic storage duration and won't be destroyed during termination. PR libstdc++/70966 * include/experimental/memory_resource (__resource_adaptor_imp): Add static assertions to enforce requirements on pointer types. (__resource_adaptor_imp::get_allocator()): Add noexcept. (new_delete_resource, null_memory_resource): Return address of an object with dynamic storage duration. (__null_memory_resource): Remove. * testsuite/experimental/memory_resource/70966.cc: New. From-SVN: r261818
Diffstat (limited to 'gcc/tree-data-ref.c')
0 files changed, 0 insertions, 0 deletions