[Bug c++/48707] [4.6/4.7 Regression] [c++0x] ICE initializing static const int
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 25 21:53:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48707
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-04-25 21:51:36 UTC ---
Author: jason
Date: Mon Apr 25 21:51:33 2011
New Revision: 172941
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172941
Log:
PR c++/48707
* decl.c (type_dependent_init_p): New.
(cp_finish_decl): Check it.
* pt.c (any_type_dependent_elements_p): New.
* cp-tree.h: Declare it.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/regress/template-const2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl.c
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list