From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24340 invoked by alias); 10 Nov 2002 04:26:02 -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 24316 invoked by uid 71); 10 Nov 2002 04:26:01 -0000 Resent-Date: 10 Nov 2002 04:26:01 -0000 Resent-Message-ID: <20021110042601.24315.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, pss@pixar.com Received: (qmail 23947 invoked from network); 10 Nov 2002 04:21:15 -0000 Received: from unknown (HELO pixar.pixar.com) (138.72.10.20) by sources.redhat.com with SMTP; 10 Nov 2002 04:21:15 -0000 Received: from zort.pixar.com (zort.pixar.com [138.72.11.247]) by pixar.pixar.com (8.9.3/8.9.3) with ESMTP id UAA29943 for ; Sat, 9 Nov 2002 20:21:12 -0800 (PST) Received: (from pss@localhost) by zort.pixar.com (8.11.2/8.9.3) id gAA4L2t32625; Sat, 9 Nov 2002 20:21:02 -0800 Message-Id: <200211100421.gAA4L2t32625@zort.pixar.com> Date: Sat, 09 Nov 2002 20:26:00 -0000 From: pss@pixar.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: c++/8513: g++ internal compiler error X-SW-Source: 2002-11/txt/msg00465.txt.bz2 List-Id: >Number: 8513 >Category: c++ >Synopsis: g++ internal compiler error >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Sat Nov 09 20:26:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: >Release: 3.1 or 3.2 >Organization: Pixar Animation Studios >Environment: System: Linux zort 2.4.9-13psmp #1 SMP Tue Nov 13 15:24:04 EST 2001 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: ../gcc-3.2/configure --prefix=/pixar/d2 --enable-languages=c,c++ --disable-nls --disable-shared >Description: When running g++ 3.1 or 3.2 on the following input, I get an ICE: r.cpp: In static member function `static void (* A::GetFunc())()': r.cpp:15: Internal compiler error in c_expand_expr, at c-common.c:3646 >How-To-Repeat: Run "g++ -c" on the following code. (I simplified it as much as possible.) ---------------- typedef void (*FuncType)(); class A { public: template static void Func(); static FuncType GetFunc(); }; template class B {}; FuncType A::GetFunc() { return Func; } ---------------- >Fix: Work-around: Change the last line to "return A::Func" and it works ok. >Release-Note: >Audit-Trail: >Unformatted: