Add TARGET_EXPR_DIRECT_INIT_P sanity check.
authorJason Merrill <jason@redhat.com>
Wed, 8 Jan 2020 20:31:25 +0000 (15:31 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 8 Jan 2020 20:31:25 +0000 (15:31 -0500)
commit08f594eb399dab0637b57b0ca4b0a5ce912b8171
tree54c68deda2c7f193404da8f65afd15c6607cf186
parent10d2f801f472931137deae1714d5b690c1862037
Add TARGET_EXPR_DIRECT_INIT_P sanity check.

* cp-gimplify.c (cp_gimplify_expr) [TARGET_EXPR]: Check
TARGET_EXPR_DIRECT_INIT_P.
* constexpr.c (cxx_eval_constant_expression): Likewise.

From-SVN: r280019
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/cp-gimplify.c