c++: temporarily restore VEC_INIT_EXPR gimplify [PR103936]
authorJason Merrill <jason@redhat.com>
Fri, 7 Jan 2022 02:58:01 +0000 (21:58 -0500)
committerJason Merrill <jason@redhat.com>
Fri, 7 Jan 2022 05:22:56 +0000 (00:22 -0500)
commit765693be1c8dc91fe612e7a499c5e41ba398ab96
tree8f882bd005db96da7bcc5fa454ecb5269c78dff3
parent041cfa0ce44d4c207903d41e6eabccdab2dfa90b
c++: temporarily restore VEC_INIT_EXPR gimplify [PR103936]

PR103936 demonstrates that some VEC_INIT_EXPR can still survive into
GENERIC; until that's fixed let's put back the handling in cp_gimplify_expr.

PR c++/103936
PR c++/65591

gcc/cp/ChangeLog:

* cp-gimplify.c (cp_gimplify_expr): Restore VEC_INIT_EXPR handling.

gcc/testsuite/ChangeLog:

* g++.dg/init/aggr15.C: New test.
gcc/cp/cp-gimplify.c
gcc/testsuite/g++.dg/init/aggr15.C [new file with mode: 0644]