public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/1733: C++ ICE in copy_body_r with optimization on
@ 2001-04-01  0:00 snyder
  0 siblings, 0 replies; only message in thread
From: snyder @ 2001-04-01  0:00 UTC (permalink / raw)
  To: gcc-gnats

>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 <URL: http://www.gnu.org/software/gcc/bugs.html > 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-04-01  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-01  0:00 c++/1733: C++ ICE in copy_body_r with optimization on snyder

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).