OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [crash17.C] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// { dg-do assemble  }
// { dg-do assemble  }
// GROUPS passed old-abort
// GROUPS passed old-abort
//
//
// This one creates
// This one creates
//
//
// gcc2: Internal compiler error: program cc1plus got fatal signal 11
// gcc2: Internal compiler error: program cc1plus got fatal signal 11
//
//
// when compiled with g++.
// when compiled with g++.
// The error goes away, if
// The error goes away, if
// 1) int ClassInvariant() is not virtual or
// 1) int ClassInvariant() is not virtual or
// 2) GnObject has a virtual destructor or
// 2) GnObject has a virtual destructor or
// 3) GnWidget has no virtual destructor or
// 3) GnWidget has no virtual destructor or
// 4) GnContracts has a virtual destructor
// 4) GnContracts has a virtual destructor
//
//
class GnContracts {
class GnContracts {
  public:
  public:
    virtual int ClassInvariant();
    virtual int ClassInvariant();
//    virtual ~GnContracts();
//    virtual ~GnContracts();
};
};
class GnObject : public GnContracts {
class GnObject : public GnContracts {
  public:
  public:
//    virtual ~GnObject();
//    virtual ~GnObject();
};
};
class GnWidget : public GnObject {
class GnWidget : public GnObject {
  public:
  public:
    virtual ~GnWidget();
    virtual ~GnWidget();
};
};
class GnOptionGroup : public GnObject, public GnWidget {// { dg-error "" }  warning
class GnOptionGroup : public GnObject, public GnWidget {// { dg-error "" }  warning
};
};
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.