c++: new-expression is potentially constant in C++20
authorMarek Polacek <polacek@redhat.com>
Thu, 2 Jun 2022 19:56:18 +0000 (15:56 -0400)
committerMarek Polacek <polacek@redhat.com>
Thu, 2 Jun 2022 20:28:40 +0000 (16:28 -0400)
commit2423f6548405185e256036df3d0ef3c13fd996c5
treebb63df71df5e1b06925f0a10b20a4461f92dd832
parent7b98910406b5000a6429c188b0c6cc14e3140637
c++: new-expression is potentially constant in C++20

... so adjust p_c_e accordingly.

gcc/cp/ChangeLog:

* constexpr.cc (potential_constant_expression_1): Treat
{,VEC_}NEW_EXPR and {,VEC_}DELETE_EXPRas potentially constant in C++20.
gcc/cp/constexpr.cc