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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

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

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
A bit further reduced:

class A
{
public:
  virtual void m_fn1 ();
  int m_local;
};
class C : virtual public A
{
};
class B
{
  A *m_g;

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

public:
  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]