From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23352 invoked by alias); 12 Jun 2002 13:36:05 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 23276 invoked by uid 71); 12 Jun 2002 13:36:03 -0000 Date: Wed, 12 Jun 2002 06:36:00 -0000 Message-ID: <20020612133603.23275.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Reichelt Subject: Re: c++/6971: Internal compiler error / compiler SIGSEGV Reply-To: Reichelt X-SW-Source: 2002-06/txt/msg00272.txt.bz2 List-Id: The following reply was made to PR c++/6971; it has been noted by GNATS. From: Reichelt To: wwieser@gmx.de, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org Cc: Subject: Re: c++/6971: Internal compiler error / compiler SIGSEGV Date: Wed, 12 Jun 2002 16:05:23 +0200 Hi, the testcase can be reduced to the following (legal) code snippet (just compile with g++ -c): ----------------------------snip here--------------------------- template class A { template friend int foo(); }; A<0> a; template 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