c++: Tweak predeclare_vla.
authorJason Merrill <jason@redhat.com>
Sat, 6 Jun 2020 04:07:21 +0000 (00:07 -0400)
committerJason Merrill <jason@redhat.com>
Tue, 9 Jun 2020 16:05:50 +0000 (12:05 -0400)
commitef41587df9839d1dfc77dbc48a0830e42b36626e
tree71f9a40bd19f2e7a614caff1b7a634b6a75cc2dc
parentbf4ab2689bb586971d5b2ab6b13d078cd7ac45af
c++: Tweak predeclare_vla.

We only need to predeclare a VLA type if it's wrapped in a pointer type;
otherwise gimplify_type_sizes will handle it.

gcc/cp/ChangeLog:

PR c++/95552
* cp-gimplify.c (predeclare_vla): Only predeclare a VLA if it's
wrapped in a pointer type.
gcc/cp/cp-gimplify.c