From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21464 invoked by alias); 10 Oct 2002 20:56: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 21435 invoked by uid 71); 10 Oct 2002 20:56:01 -0000 Date: Thu, 10 Oct 2002 13:56:00 -0000 Message-ID: <20021010205601.21429.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Reichelt Subject: Re: c++/8186: ICE in cp_expr_size, at cp/cp-lang.c:304 Reply-To: Reichelt X-SW-Source: 2002-10/txt/msg00421.txt.bz2 List-Id: The following reply was made to PR c++/8186; it has been noted by GNATS. From: Reichelt To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, jh@suse.cz, nobody@gcc.gnu.org Cc: Subject: Re: c++/8186: ICE in cp_expr_size, at cp/cp-lang.c:304 Date: Thu, 10 Oct 2002 23:40:47 +0200 Hi, the PR can be reduced to the following code snippet: ----------------------snip here-------------------- #include struct C { C (std::string) {} }; void foo () { throw C(std::string()); } ----------------------snip here-------------------- This can be further reduced to: ----------------------snip here-------------------- struct A { A (); A (const A&); }; struct B { A a; B& operator= (const B&); }; struct C { C (B) {} }; void foo () { throw C(B()); } ----------------------snip here-------------------- Compiling with "g++ -O -c" the main trunk (as of 20021007) crashes with the message (checked on i686-pc-linux-gnu and mips-sgi-irix6.5): bug.cc: In function `void foo()': bug.cc:15: internal compiler error: in cp_expr_size, at cp/cp-lang.c:304 Please submit a full bug report, [etc.] The 3.2-branch and previous versions are not affected. Greetings, Volker Reichelt http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8186