This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16779] g++ template instantiation bug
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jul 2004 13:29:56 -0000
- Subject: [Bug c++/16779] g++ template instantiation bug
- References: <20040727084122.16779.ares.lagae@cs.kuleuven.ac.be>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-07-27 13:29 -------
No, gcc is correct. A specialization is a function definition, not
a template. Thus it has strong linkage. If you want it to have weak
linkage you have to either
1/ declare it inline
2/ declare the existence of the specialization in the header file, and
put the definition of the function body into a source file.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16779