diff options
author | Jakub Jelinek <jakub@redhat.com> | 2020-01-07 08:13:50 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2020-01-07 08:13:50 +0100 |
commit | f74f6092ace420bd8a4498697754b06fc6da63bd (patch) | |
tree | cca42358fa3b5c25e78f163588388996a048c043 /gcc/tree-inline.c | |
parent | 6ac22177a085e0ba36c95e71cee8235cc8b12947 (diff) | |
download | gcc-f74f6092ace420bd8a4498697754b06fc6da63bd.zip gcc-f74f6092ace420bd8a4498697754b06fc6da63bd.tar.gz gcc-f74f6092ace420bd8a4498697754b06fc6da63bd.tar.bz2 |
re PR c++/91369 (Implement P0784R7: constexpr new)
PR c++/91369
* constexpr.c (struct constexpr_global_ctx): Add heap_alloc_count
member, initialize it to zero in ctor.
(cxx_eval_call_expression): Bump heap_dealloc_count when deleting
a heap object. Don't cache calls to functions which allocate some
heap objects and don't deallocate them or deallocate some heap
objects they didn't allocate.
* g++.dg/cpp1y/constexpr-new.C: Expect an error explaining why
static_assert failed for C++2a.
* g++.dg/cpp2a/constexpr-new9.C: New test.
From-SVN: r279943
Diffstat (limited to 'gcc/tree-inline.c')
0 files changed, 0 insertions, 0 deletions