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: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jan 2010 23:14:30 -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 #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