This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/48265] [4.6/4.7 Regression] [C++0x] ICE: SIGSEGV (recursion in value_dependent_expression_p) when variable is used uninitialised


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]