This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8736: internal compile error at a typedef to a typedef in a template sub struct of a template struct from a template function
- From: reichelt at igpm dot rwth-aachen dot de
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, pkolloch at gmx dot net
- Date: 27 Nov 2002 23:53:19 -0000
- Subject: Re: c++/8736: internal compile error at a typedef to a typedef in a template sub struct of a template struct from a template function
- Reply-to: reichelt at igpm dot rwth-aachen dot de, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, pkolloch at gmx dot net, gcc-gnats at gcc dot gnu dot org
Synopsis: internal compile error at a typedef to a typedef in a template sub struct of a template struct from a template function
State-Changed-From-To: open->analyzed
State-Changed-By: reichelt
State-Changed-When: Wed Nov 27 15:53:18 2002
State-Changed-Why:
Confirmed.
The code crashes everything since gcc 3.0, and is rejected
by gcc 2.95.3.
The code isn't quite conforming, however, the line under the
comment lacks a "template" - it should read:
typedef typename A<T>::template GetType<T>::blupps blupps_t;
With this correction the code compiles fine on all releases since 2.95.3.
BTW, the problem looks very similar to the one in PR 8061.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8736