[Bug middle-end/95552] [11 Regression] VLA ICE

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 9 16:05:56 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95552

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:

https://gcc.gnu.org/g:ef41587df9839d1dfc77dbc48a0830e42b36626e

commit r11-1122-gef41587df9839d1dfc77dbc48a0830e42b36626e
Author: Jason Merrill <jason@redhat.com>
Date:   Sat Jun 6 00:07:21 2020 -0400

    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.


More information about the Gcc-bugs mailing list