This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13088] templatizing outer class hides specialization of inner template class
- From: "cppljevans at cox-internet dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Nov 2003 00:28:11 -0000
- Subject: [Bug c++/13088] templatizing outer class hides specialization of inner template class
- References: <20031117182653.13088.cppljevans@cox-internet.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From cppljevans at cox-internet dot com 2003-11-18 00:28 -------
Subject: Re: templatizing outer class hides specialization
of inner template class
On 11/17/2003 04:05 PM, falk at debian dot org wrote:
>------- Additional Comments From falk at debian dot org 2003-11-17 22:05 -------
>Just as a random factoid, the Compaq compiler thinks:
>
>cxx: Error: test.cc, line 20: a partial specialization of a member class
> template must be declared in the class of which it is a member
>struct X<U>::Local<typename S<U>::template Type<T> > {
>-------------^
>cxx: Info: 1 error detected in the compilation of "test.cc".
>
>I don't have enough C++-fu to know whether it is right
>
>
I think Compaq is right :( See
http://www.comeaucomputing.com/iso/cwg_defects.html#44
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13088