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 #2 from jason at gcc dot gnu dot org  2010-01-05 23:14 -------
This was broken by

    2008-08-19  Rafael Espindola  <espindola@google.com>

          * varasm.c (weak_decls): Move earlier in the file.
          (assemble_external): Add weak decls to the weak_decls list.
          (declare_weak): Don't add decls to the weak_decls list.

Before this change only declarations explicitly marked weak became weak
references, but after this change any C++ vague linkage function which isn't
defined in the current translation unit becomes a weak reference.


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |espindola at gcc dot gnu dot
                   |                            |org, jason at gcc dot gnu
                   |                            |dot org
         AssignedTo|jason at gcc dot gnu dot org|unassigned at gcc dot gnu
                   |                            |dot org
             Status|ASSIGNED                    |NEW


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]