From mboxrd@z Thu Jan 1 00:00:00 1970 From: snyder@fnal.gov To: gcc-gnats@gcc.gnu.org Subject: c++/1733: C++ ICE in copy_body_r with optimization on Date: Sun, 01 Apr 2001 00:00:00 -0000 Message-id: <200101222121.f0MLLcY06621@karma.fnal.gov> X-SW-Source: 2001-q1/msg00607.html List-Id: >Number: 1733 >Category: c++ >Synopsis: C++ ICE in copy_body_r with optimization on >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Mon Jan 22 13:36:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: scott snyder >Release: 2.97 20010122 (experimental) >Organization: >Environment: System: Linux karma 2.2.16-22 #1 Tue Aug 22 16:49:06 EDT 2000 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: ../egcs/configure --prefix=/usr/local/egcs --enable-threads=posix >Description: G++ crashes on the source below when the -O switch is used. The workaround i've been using is to compile the affected modules without optimization. >How-To-Repeat: ----------------------------------------------------- struct TBtItem { TBtItem(); }; struct TBtInnerNode { TBtInnerNode(); int MaxIndex() const { return 10; } }; TBtInnerNode::TBtInnerNode() { new TBtItem[MaxIndex()+1]; } ----------------------------------------------------- $ ./cc1plus -O x.cc int TBtInnerNode::MaxIndex() const TBtInnerNode::TBtInnerNode() TBtInnerNode::TBtInnerNode() TBtInnerNode::TBtInnerNode() TBtInnerNode::TBtInnerNode() x.cc:10: Internal compiler error in copy_body_r, at cp/optimize.c:317 Please submit a full bug report. See for instructions. >Fix: >Release-Note: >Audit-Trail: >Unformatted: >>From lerdsuwa@gcc.gnu.org Sun Apr 01 00:00:00 2001 From: lerdsuwa@gcc.gnu.org To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: c++/2417 Date: Sun, 01 Apr 2001 00:00:00 -0000 Message-id: <20010330071601.19270.qmail@sourceware.cygnus.com> X-SW-Source: 2001-q1/msg02661.html Content-length: 658 The following reply was made to PR c++/2417; it has been noted by GNATS. From: lerdsuwa@gcc.gnu.org To: gcc-gnats@gcc.gnu.org, imad.ossaily@nokia.com, nobody@gcc.gnu.org Cc: Subject: Re: c++/2417 Date: 30 Mar 2001 07:14:43 -0000 Synopsis: GCC 2.95.3 gives internal compiler error State-Changed-From-To: open->feedback State-Changed-By: lerdsuwa State-Changed-When: Fri Mar 30 02:14:43 2001 State-Changed-Why: I cannot reproduce your problem without the preprocessed source. Please provide one. The instructions can be found at http://gcc.gnu.org/bugs.html http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2417&database=gcc