This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/17818] New: Segfault in can_throw_internal
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Oct 2004 22:24:54 -0000
- Subject: [Bug middle-end/17818] New: Segfault in can_throw_internal
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
// { dg-do compile }
// { dg-options "-O2" }
#include <map>
using namespace std;
class X
{
map <int, int> x3;
public:
X (int x) { }
virtual ~X () { return; }
int bar ();
};
struct Y : public X
{
Y (int t) : X (t) { }
virtual ~Y () { return; }
virtual int foo () = 0;
};
struct Z : public Y
{
Z () : Y (2) { }
~Z () { return; }
int foo ();
};
int
Z::foo ()
{
return bar ();
}
segfaults at least on i386-redhat-linux and x86_64-redhat-linux in 3.3.x,
works in 3.2.x and 3.4.x.
--
Summary: Segfault in can_throw_internal
Product: gcc
Version: 3.3.5
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17818