public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8117: member function pointers and multiple inheritance
@ 2002-11-04 14:58 bangerth
  0 siblings, 0 replies; only message in thread
From: bangerth @ 2002-11-04 14:58 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, yuvalk

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-04 22:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-04 14:58 c++/8117: member function pointers and multiple inheritance bangerth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).