This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/6440: template specializations cause ICE
- From: Jens Maurer <Jens dot Maurer at gmx dot net>
- To: lerdsuwa at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Mon, 20 May 2002 16:15:49 +0200
- Subject: Re: c++/6440: template specializations cause ICE
- References: <20020514134316.25182.qmail@sources.redhat.com>
14.7.3p18 appears to say that A<int>::B<X> is not the right
syntax, because A<int>::B is a genuine class template (for B),
and A<int>::B has not been declared previously.
Jens Maurer
lerdsuwa@gcc.gnu.org wrote:
>
> Synopsis: template specializations cause ICE
>
> State-Changed-From-To: open->analyzed
> State-Changed-By: lerdsuwa
> State-Changed-When: Tue May 14 06:43:14 2002
> State-Changed-Why:
> Confirmed, ICE on both 3.1 branch and main trunk. Perhaps
> the right syntax could be:
> template<> template<class X>
> class A<int>::B<X> {
> ^^^
>
> Both 3.1 and trunk work fine with the above code.
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6440