aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/lambda.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-11-02 00:26:17 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2019-11-02 00:26:17 +0100
commit8412b939d1cf375c8e478e39a5ac9d7260e4c23c (patch)
treefa30aa009dcb3b40d9e2996606c4f8ec9635d72e /gcc/cp/lambda.c
parent8a8ce49e0f3983e1b72f490a59ded92bca053c71 (diff)
downloadgcc-8412b939d1cf375c8e478e39a5ac9d7260e4c23c.zip
gcc-8412b939d1cf375c8e478e39a5ac9d7260e4c23c.tar.gz
gcc-8412b939d1cf375c8e478e39a5ac9d7260e4c23c.tar.bz2
PR c++/91369 - Implement P0784R7: constexpr new
PR c++/91369 - Implement P0784R7: constexpr new * cp-tree.h (CALL_FROM_NEW_OR_DELETE_P): Define. * init.c (build_new_1, build_vec_delete_1, build_delete): Set CALL_FROM_NEW_OR_DELETE_P on the CALL_EXPR to allocator functions. * constexpr.c (is_std_allocator_allocate): Only allow global replaceable allocator functions if CALL_FROM_NEW_OR_DELETE_P or in std::allocate<T>::{,de}allocate. (potential_constant_expression_1): Likewise. * g++.dg/cpp2a/constexpr-new6.C: New test. * g++.dg/cpp2a/constexpr-new7.C: New test. From-SVN: r277732
Diffstat (limited to 'gcc/cp/lambda.c')
0 files changed, 0 insertions, 0 deletions