This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18306] seems not possible to specialize a template member function
- 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: 24 Nov 2004 19:11:10 -0000
- Subject: [Bug c++/18306] seems not possible to specialize a template member function
- References: <20041105041308.18306.ramya.chandar@wipro.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-24 19:11 -------
Invalid, as what you are doing is called explicit specializtion and when this happens you instantiate the
template and now you are violating the one defintional rule (which is 14.7/5 in the C++ standard).
Note that if you use 3.4.0, it works with adding template<>.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18306