This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/42608] [4.4/4.5 Regression] Undefined reference not reported in case of explicit template instantiation



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]