This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/11083] [3.3 regression] ICE in commit_one_edge_insertion, at cfgrtl.c:1438 with -O2 -fnon-call-exceptions


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]