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 ipa/60871] [4.9/4.10 Regression] internal compiler error: in possible_polymorphic_call_targets, at ipa-devirt.c:1510


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60871

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r207451.  Tiny bit more reduced for -O2:
struct A
{
  virtual void m_fn1 ();
  int m_local;
};
class C : virtual public A
{
};
struct B
{
  A *m_g;

  B (A *p1) : m_g (p1) { m_g->m_fn1 (); }
};
struct C7
{
  virtual ~C7 ();
};
class D : public C, C7
{
};
struct F : D
{
  F (int);

  static void m_fn2 ()
  {
    F a (0);
    B b (&a);
  }
};
void fn1 () { F::m_fn2 (); }


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