This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26173] derived template class with virtual functions implemented in a seperated file does not link
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Feb 2006 12:48:09 -0000
- Subject: [Bug c++/26173] derived template class with virtual functions implemented in a seperated file does not link
- References: <bug-26173-12155@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-02-08 12:48 -------
template class B<short>;
template class B<int>;
template class B<long>;
template <typename T> int B<T>::Method1()
{...}
--------
This is your issue. Move the instantiations below the defintion of the method
definition.
This is a dup of bug 24511 which describes why this is behavior is correct and
why the bug is also still open though.
*** This bug has been marked as a duplicate of 24511 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26173