This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ipa/60871] [4.9/4.10 Regression] internal compiler error: in possible_polymorphic_call_targets, at ipa-devirt.c:1510
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 17 Apr 2014 12:05:57 +0000
- Subject: [Bug ipa/60871] [4.9/4.10 Regression] internal compiler error: in possible_polymorphic_call_targets, at ipa-devirt.c:1510
- Auto-submitted: auto-generated
- References: <bug-60871-4 at http dot gcc dot gnu dot org/bugzilla/>
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 (); }