------- Comment #8 from jakub at gcc dot gnu dot org 2010-01-14 22:47 ------- Subject: Bug 42608
Author: jakub Date: Thu Jan 14 22:46:43 2010 New Revision: 155921 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155921 Log: PR c++/42608 * varasm.c (declare_weak): Add weak attribute to decl if it doesn't have one already. (assemble_external): Only add decls to weak_decls if they also have weak attribute. * g++.dg/template/instantiate11.C: New test. Added: branches/gcc-4_4-branch/gcc/testsuite/g++.dg/template/instantiate11.C Modified: branches/gcc-4_4-branch/gcc/ChangeLog branches/gcc-4_4-branch/gcc/testsuite/ChangeLog branches/gcc-4_4-branch/gcc/varasm.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42608