]> gcc.gnu.org Git - gcc.git/commit
re PR c++/24389 (template variable not getting marked as weak)
authorMark Mitchell <mark@codesourcery.com>
Sun, 16 Oct 2005 23:17:53 +0000 (23:17 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 16 Oct 2005 23:17:53 +0000 (23:17 +0000)
commit2d22db1f2a4c0e98dc3be3bbe2512252d530b599
tree3618dcffe2507c601f8aff3bb13ef29ad2ae0551
parent1165f3777b417e44c617b916f1373332c9f10cac
re PR c++/24389 (template variable not getting marked as weak)

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.

From-SVN: r105474
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]
This page took 0.059719 seconds and 5 git commands to generate.