public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/11646] New: [3.3 regression] ICE with -fnon-call-exceptions -fgcse -O
@ 2003-07-23 18:09 nick at ilm dot com
  2003-07-23 18:10 ` [Bug optimization/11646] " nick at ilm dot com
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: nick at ilm dot com @ 2003-07-23 18:09 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11646

           Summary: [3.3 regression] ICE with -fnon-call-exceptions -fgcse -
                    O
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: nick at ilm dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu

The following code ICE's the 3.3.1 prerelease with -fnon-call-exceptions
and -fgcse.  Disabling either of the two flags results in successful
compilation.  This compiles succeffully with the 3.2.3 release.

---------------
#include <vector>
using std::vector;

struct A {
  float l() const;
  A operator - (const A &) const;
  const A & operator = (float) const;
};

struct B {
  float d();
};

struct C {
    int i;
};

float
f(const A& a, B& b)
{
    vector<C> vc;
    int index = vc[0].i;
    A aa;
    float d = (aa - a).l();
    if (d > b.d()) aa = 0;
    return b.d();
}
------------------

> /dept/rnd/vendor/gcc-3.3.1-20030720/bin/g++ -fnon-call-exceptions -fgcse -O -c
fnce-gcse.C
fnce-gcse.C: In function `float f(const A&, B&)':
fnce-gcse.C:27: internal compiler error: in split_edge, at cfgrtl.c:1326
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-nick


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2003-09-17  7:20 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-23 18:09 [Bug optimization/11646] New: [3.3 regression] ICE with -fnon-call-exceptions -fgcse -O nick at ilm dot com
2003-07-23 18:10 ` [Bug optimization/11646] " nick at ilm dot com
2003-07-23 18:25 ` [Bug optimization/11646] [3.3/3.4 regression] ICE in commit_one_edge_insertion " bangerth at dealii dot org
2003-07-23 18:54 ` bangerth at dealii dot org
2003-07-23 18:55 ` bangerth at dealii dot org
2003-07-25 23:30 ` janis187 at us dot ibm dot com
2003-08-09 13:17 ` pinskia at gcc dot gnu dot org
2003-09-04 20:48 ` ebotcazou at gcc dot gnu dot org
2003-09-04 20:58 ` bangerth at ices dot utexas dot edu
2003-09-04 21:12 ` ebotcazou at gcc dot gnu dot org
2003-09-04 21:39 ` bangerth at ices dot utexas dot edu
2003-09-12 11:20 ` ebotcazou at gcc dot gnu dot org
2003-09-12 11:20 ` ebotcazou at gcc dot gnu dot org
2003-09-15  9:13 ` ebotcazou at gcc dot gnu dot org
2003-09-17  8:19 ` cvs-commit at gcc dot gnu dot org
2003-09-17  9:04 ` cvs-commit at gcc dot gnu dot org
2003-09-17  9:21 ` ebotcazou at gcc dot gnu dot org

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