re PR c++/48265 ([C++0x] ICE: SIGSEGV (recursion in value_dependent_expression_p...
authorJason Merrill <jason@redhat.com>
Wed, 30 Mar 2011 02:16:22 +0000 (22:16 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 30 Mar 2011 02:16:22 +0000 (22:16 -0400)
commit5453bbef09e7c3afb3aa0227e99d225d055f90cb
tree344a415d9fb4d0e3b55bb77e4e7d3a3466f04a17
parentad3b266ba5b48f3ce496a387a751c411a6a40cd6
re PR c++/48265 ([C++0x] ICE: SIGSEGV (recursion in value_dependent_expression_p) when variable is used uninitialised)

PR c++/48265
* pt.c (value_dependent_expression_p) [VAR_DECL]: Make sure
the variable is constant before looking at its initializer.

From-SVN: r171714
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/regress/value-dep1.C [new file with mode: 0644]