[Bug c++/70204] [6 Regression] ICE on x86_64-linux-gnu in non_const_var_error, at cp/constexpr.c:2764
ppalka at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 22 00:31:00 GMT 2016
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
More information about the Gcc-bugs
mailing list