This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/11083] [3.3 regression] ICE in commit_one_edge_insertion, at cfgrtl.c:1438 with -O2 -fnon-call-exceptions
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jun 2003 02:32:29 -0000
- Subject: [Bug optimization/11083] [3.3 regression] ICE in commit_one_edge_insertion, at cfgrtl.c:1438 with -O2 -fnon-call-exceptions
- References: <20030604010854.11083.nick@ilm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11083
bangerth@dealii.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Priority|P2 |P1
Last reconfirmed|0000-00-00 00:00:00 |2003-06-04 02:32:28
date| |
Target Milestone|3.4 |3.3.1
------- Additional Comments From bangerth@dealii.org 2003-06-04 02:32 -------
What a nasty bug -- only 11000 lines in the preprocessed sources and still
so hard to track down...
Here's a cut-down:
-------------------------------------------
extern void *memmove (void *, const void *, unsigned int) throw ();
struct S {
int * q;
S(int * i) : q(i) { }
};
struct X {
int *p;
void foo(S first, S last) {
try { memmove(0, 0, last.q - first.q); }
catch(...) { throw; }
}
void bar (const X& x);
};
void X::bar (const X& x) {
const unsigned int xlen = S(x.p).q-S(x.p).q;
if (xlen > 0)
foo(S(x.p).q, S(x.p).q);
}
------------------------------
g/x> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c y.cc -O2 -fnon-call-exceptions
y.cc: In member function `void X::bar(const X&)':
y.cc:23: internal compiler error: in commit_one_edge_insertion, at cfgrtl.c:
1438
Please submit a full bug report,
with preprocessed source if appropriate.
This works with 3.2.3 and mainline, but ICEs as above with 3.3.
W.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.