This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21543] Full specialization of templates not supported in classes
- 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: 14 May 2005 17:06:01 -0000
- Subject: [Bug c++/21543] Full specialization of templates not supported in classes
- References: <20050513094441.21543.sven@clio.in-berlin.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-14 17:06 -------
I don't think full specializations are not allowed in side classes but I don't have my copy of the standard
in front of me.
Also note ICC also rejects this code:
t.cc(28): error: class "container::iterator<container::pointer>" cannot be specialized in the current scope
template<> struct iterator<pointer>: wrapper<value_type *> {};
^
t.cc(31): error: argument list for class template "heap" is missing
heap<int>::iterator<heap::pointer> p;
^
t.cc(31): error: incomplete type is not allowed
heap<int>::iterator<heap::pointer> p;
^
compilation aborted for t.cc (code 2)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21543