This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/6252: [parser]ICE when accessing member template of explicit specialization of outer template
- From: lerdsuwa at gcc dot gnu dot org
- To: anthwil at nortelnetworks dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 17 Jun 2002 14:22:22 -0000
- Subject: Re: c++/6252: [parser]ICE when accessing member template of explicit specialization of outer template
- Reply-to: lerdsuwa at gcc dot gnu dot org, anthwil at nortelnetworks dot com, 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
Old Synopsis: ICE when accessing member template of explicit specialization of outer template
New Synopsis: [parser]ICE when accessing member template of explicit specialization of outer template
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Mon Jun 17 07:22:21 2002
State-Changed-Why:
ICE confirmed. Your code is illegal. The line
typedef typename Outer<T>::Inner<U>::Type Type;
should be replaced by
typedef typename Outer<T>::template Inner<U>::Type Type;
GCC compiles the correct code without any error.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6252