re PR c++/48707 ([c++0x] ICE initializing static const int)
authorJason Merrill <jason@redhat.com>
Mon, 25 Apr 2011 21:51:33 +0000 (17:51 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 25 Apr 2011 21:51:33 +0000 (17:51 -0400)
commitd95f258e9027e7d797bde4eace3e29ab7d9382db
tree85e95790d9e34a31798f2d73b8ff70073b0ff6ac
parent4d583bb9fcd52dfe308a438bf31433ad8f23c0d5
re PR c++/48707 ([c++0x] ICE initializing static const int)

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.

From-SVN: r172941
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/regress/template-const2.C [new file with mode: 0644]