This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3649
- To: gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, morandini at aero dot polimi dot it
- Subject: Re: c++/3649
- From: Reichelt <reichelt at igpm dot rwth-aachen dot de>
- Date: Mon, 27 Aug 2001 12:03:00 +0200
Hi,
I tried to reduce the example that crashes the compiler and came up with
the following code:
template <class T> struct A { typedef int X; };
template <class T> struct B { typedef A<T> Y; void f (Y::X); };
template <class T, class T1, class T2, class T3> struct C : public B<T>
{ void g (Y::X); };
template class B<int>;
The code crashes gcc 3.0 as well as gcc 3.0.1 on my LINUX box.
The original example also crashes an IRIX box with gcc 3.0
(so I assume it's a platform independant problem), but
(unfortunately - yet not very surprisingly) that doesn't happen
with this short example.
I hope that helps.
Greetings,
Volker Reichelt
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3649&database=gcc