------- 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

Reply via email to