[Bug c++/84559] [7/8 Regression] ICE with constexpr and variable-sized array

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 26 22:03:00 GMT 2018


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

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Feb 26 21:55:41 2018
New Revision: 258015

URL: https://gcc.gnu.org/viewcvs?rev=258015&root=gcc&view=rev
Log:
        PR c++/84559 - ICE with constexpr VLA.

        * constexpr.c (ensure_literal_type_for_constexpr_object): Check
        for constexpr variable with VLA type.

Added:
    trunk/gcc/testsuite/g++.dg/ext/constexpr-vla5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c


More information about the Gcc-bugs mailing list