[Bug c++/48265] [4.6/4.7 Regression] [C++0x] ICE: SIGSEGV (recursion in value_dependent_expression_p) when variable is used uninitialised
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 30 02:27:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48265
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-30 02:16:27 UTC ---
Author: jason
Date: Wed Mar 30 02:16:22 2011
New Revision: 171714
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171714
Log:
PR c++/48265
* pt.c (value_dependent_expression_p) [VAR_DECL]: Make sure
the variable is constant before looking at its initializer.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/regress/value-dep1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list