This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24331] The symbol properties of generated C++ code depend on the position of template instantiations
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Oct 2005 14:57:56 -0000
- Subject: [Bug c++/24331] The symbol properties of generated C++ code depend on the position of template instantiations
- References: <bug-24331-11513@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from bangerth at dealii dot org 2005-10-12 14:57 -------
To be clear about what the original bug was: despite the existence of the
explicit instantiation (after an implicit instantiation of f<1>), the generated
symbol had private linkage. Such symbols aren't exported from shared libraries.
The only viable solution seems to be to move the explicit instantiation before
the implicit use.
Best
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24331