re PR c++/42608 (Undefined reference not reported in case of explicit template instantiation)
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. From-SVN: r155919
Showing
Please
register
or
sign in
to comment