This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/42608] [4.4/4.5 Regression] Undefined reference not reported in case of explicit template instantiation
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jan 2010 12:06:12 -0000
- Subject: [Bug c++/42608] [4.4/4.5 Regression] Undefined reference not reported in case of explicit template instantiation
- References: <bug-42608-18628@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from jakub at gcc dot gnu dot org 2010-01-08 12:06 -------
Yeah, there are several reasons why DECL_WEAK may be set, but only when it is
because of weak attribute or #pragma weak we want to add it to weak_decls.
For vague linkage, or weakref attribute we don't want to do that.
I wonder whether we couldn't add weak attribute in apply_pragma_weak and just
add to weak_decls decls that have that attribute.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42608