PR c++/24389
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 16 Oct 2005 23:17:53 +0000 (23:17 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 16 Oct 2005 23:17:53 +0000 (23:17 +0000)
commit5c028b29a218419112e82694df26e9f434d2344e
tree3618dcffe2507c601f8aff3bb13ef29ad2ae0551
parent25c41c32d7afed5c728fed06f34bb0b26a3f4f9a
PR c++/24389
* decl2.c (mark_used): Use uses_template_parms instead of
dependent_type_p.
* init.c (constant_value_1): Handle uninstantiated templates
specially.
* pt.c (instantiate_decl): Add sanity check.
PR c++/24389
* g++.dg/template/static21.C: New test.
* g++.dg/template/static21-a.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105474 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/init.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/static21-a.cc [new file with mode: 0644]
gcc/testsuite/g++.dg/template/static21.C [new file with mode: 0644]