From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32618 invoked by alias); 2 Jan 2003 17:36:03 -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 32591 invoked by uid 71); 2 Jan 2003 17:36:02 -0000 Resent-Date: 2 Jan 2003 17:36:02 -0000 Resent-Message-ID: <20030102173602.32590.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, mark@codesourcery.com Resent-Reply-To: gcc-gnats@gcc.gnu.org, ghazi@caip.rutgers.edu Received: (qmail 27621 invoked by uid 61); 2 Jan 2003 17:29:05 -0000 Message-Id: <20030102172905.27608.qmail@sources.redhat.com> Date: Thu, 02 Jan 2003 17:36:00 -0000 From: ghazi@caip.rutgers.edu Reply-To: ghazi@caip.rutgers.edu To: gcc-gnats@gcc.gnu.org Cc: mark@codesourcery.com X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: mark@codesourcery.com Subject: c++/9138: New C++ parser regression on mips-irix6 with g++.jason/thunk1.C (and thunk2.C/thunk3.C) X-SW-Source: 2003-01/txt/msg00132.txt.bz2 List-Id: >Number: 9138 >Category: c++ >Synopsis: New C++ parser regression on mips-irix6 with g++.jason/thunk1.C (and thunk2.C/thunk3.C) >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Thu Jan 02 09:36:01 PST 2003 >Closed-Date: >Last-Modified: >Originator: Kaveh Ghazi >Release: gcc version 3.4 20030101 (experimental) >Organization: >Environment: mips-sgi-irix6.5 >Description: I get these new testsuite failures on mips-sgi-irix6.5 which appear to be related: FAIL: g++.jason/thunk1.C caused compiler crash FAIL: g++.jason/thunk2.C caused compiler crash FAIL: g++.jason/thunk3.C caused compiler crash The logfile message for all three looks like this: thunk1.C: In member function `A CExample::_ZThn4_N8CExample9MixinFuncEi1A(int, A)': thunk1.C:33: internal compiler error: tree check: expected tree_list, have function_decl in friend_accessible_p, at cp/search.c:954 >How-To-Repeat: Compile thunk1.ii with: cc1plus -fpreprocessed thunk1.ii -quiet -dumpbase thunk1.C -ansi -auxbase thunk1 -pedantic-errors -Wno-long-long -ansi -version -fmessage-length=0 -o thunk1.s # 1 "/caip/u58/ghazi/gcc-testing/egcc-CVS20030102/gcc/testsuite/g++.old-deja/g++.jason/thunk1.C" # 1 "" # 1 "" # 1 "/caip/u58/ghazi/gcc-testing/egcc-CVS20030102/gcc/testsuite/g++.old-deja/g++.jason/thunk1.C" struct A { void* p; A (void* q): p (q) { } A (const A& a): p (a.p) { } }; class CBase { public: virtual void BaseFunc(); }; class MMixin { public: virtual A MixinFunc(int arg, A arg2) = 0; }; class CExample : public CBase, public MMixin { public: A MixinFunc(int arg, A arg2); }; void CBase::BaseFunc() { } A CExample::MixinFunc(int arg, A arg2) { if (arg != 1 || arg2.p != 0) return 0; return this; } void* test(MMixin& anExample) { return anExample.MixinFunc(1,A(0)).p; } int main () { CExample c; if (test(c) != &c) return 1; } >Fix: >Release-Note: >Audit-Trail: >Unformatted: