This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/6971: Internal compiler error / compiler SIGSEGV
- From: Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: wwieser at gmx dot de, gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Wed, 12 Jun 2002 16:05:23 +0200
- Subject: Re: c++/6971: Internal compiler error / compiler SIGSEGV
Hi,
the testcase can be reduced to the following (legal) code snippet
(just compile with g++ -c):
----------------------------snip here---------------------------
template<int N> class A
{
template<int I,int J> friend int foo();
};
A<0> a;
template<int I,int J> int foo() { return J; }
void bar() { foo<0,0>(); }
----------------------------snip here---------------------------
The bug is present in gcc 2.95.x, 3.0.x, 3.1 and in the main trunk.
(checked on i686-pc-linux-gnu and mips-sgi-irix6.5).
Greetings,
Volker Reichelt
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6971