public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: ghazi@caip.rutgers.edu To: gcc-gnats@gcc.gnu.org Cc: mark@codesourcery.com Subject: c++/9138: New C++ parser regression on mips-irix6 with g++.jason/thunk1.C (and thunk2.C/thunk3.C) Date: Thu, 02 Jan 2003 17:36:00 -0000 [thread overview] Message-ID: <20030102172905.27608.qmail@sources.redhat.com> (raw) >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 "<built-in>" # 1 "<command line>" # 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:
next reply other threads:[~2003-01-02 17:36 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-01-02 17:36 ghazi [this message] 2003-01-03 10:29 ehrhardt 2003-01-03 15:36 Kaveh R. Ghazi 2003-01-06 16:42 ghazi
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030102172905.27608.qmail@sources.redhat.com \ --to=ghazi@caip.rutgers.edu \ --cc=gcc-gnats@gcc.gnu.org \ --cc=mark@codesourcery.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).