This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]