This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8117: member function pointers and multiple inheritance
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, yuvalk at mainsoft dot com
- Date: 4 Nov 2002 22:58:18 -0000
- Subject: Re: c++/8117: member function pointers and multiple inheritance
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, yuvalk at mainsoft dot com, gcc-gnats at gcc dot gnu dot org
Old Synopsis: Ambiguous base for multiple inheritance with pure virtual base
New Synopsis: member function pointers and multiple inheritance
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon Nov 4 14:58:17 2002
State-Changed-Why:
Right, this is a regression since it did compile with 2.95.
Thus, priority "high". However, present CVS compiles it
right.
Code in question:
------------------------------
struct A {
virtual void a() = 0;
};
struct B : A {};
struct C : A {};
struct D : B, C {
virtual void a() {}
};
void (D::*s_fxn)() = &D::a;
-------------------------------
Messages:
tmp/g> /home/bangerth/bin/gcc-3.2.1-pre/bin/c++ -c x.cc
x.cc:12: `A' is an ambiguous base of `D'
x.cc:12: confused by earlier errors, bailing out
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8117