c++/6971: Internal compiler error / compiler SIGSEGV

Reichelt reichelt@igpm.rwth-aachen.de
Wed Jun 12 07:39:00 GMT 2002


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




More information about the Gcc-bugs mailing list