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 middle-end/17818] New: Segfault in can_throw_internal


// { 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


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