This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7259: ice in g++ version 3.x
- From: Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gcc-gnats at gcc dot gnu dot org, P dot Buettgenbach at FH-Wolfenbuettel dot DE, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Thu, 11 Jul 2002 20:31:46 +0200
- Subject: Re: c++/7259: ice in g++ version 3.x
Hi,
the problem can be reduced to the following code snippet (which looks
legal to me):
----------------------------------snip here--------------------------
template <template <int> class T> class A : public T<0> {};
template <typename> struct B
{
template <int> class C {};
typedef A<C> D;
};
B<void>::D d;
----------------------------------snip here--------------------------
Compiling this with "g++ -c" crashes gcc 2.95.x, 3.0.x, 3.1, 3.1-branch
(as of 20020708) and the main trunk (as of 20020702) on mips-sgi-irix6.5
and i686-pc-linux-gnu.
The bug might be related to PR 5767:
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5767
Greetings,
Volker Reichelt
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7259