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 #7 from jakub at gcc dot gnu dot org  2010-01-14 22:41 -------
Subject: Bug 42608

Author: jakub
Date: Thu Jan 14 22:41:02 2010
New Revision: 155919

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155919
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:
    trunk/gcc/testsuite/g++.dg/template/instantiate11.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/varasm.c


-- 


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]