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

--- Comment #5 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Author: ppalka
Date: Tue Mar 22 00:30:57 2016
New Revision: 234390

URL: https://gcc.gnu.org/viewcvs?rev=234390&root=gcc&view=rev
Log:
Fix PR c++/70204 (ICE in non_const_var_error)

gcc/cp/ChangeLog:

        PR c++/70204
        * constexpr.c (non_const_var_error): Check
        DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P.

gcc/testsuite/ChangeLog:

        PR c++/70204
        * g++.dg/cpp0x/constexpr-70204a.C: New test.
        * g++.dg/cpp0x/constexpr-70204b.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-70204a.C
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-70204b.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to