[Bug c++/69496] [5/6 Regression] [C++ 14] ICE on VLA in constexpr function

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 27 14:27:00 GMT 2016


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

--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Jan 27 14:26:38 2016
New Revision: 232875

URL: https://gcc.gnu.org/viewcvs?rev=232875&root=gcc&view=rev
Log:
        PR c++/69496
        * constexpr.c (cxx_eval_array_reference): Evaluate the number of
        elements of the array.

        * g++.dg/ext/constexpr-vla1.C: New test.

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


More information about the Gcc-bugs mailing list