This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/64445] virtual functions polymorphism
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 Dec 2014 14:39:56 +0000
- Subject: [Bug c++/64445] virtual functions polymorphism
- Auto-submitted: auto-generated
- References: <bug-64445-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64445
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
int xx = 0;
anExt.Y(xx); // calls Y(float) since Y(int) is hidden by ext::Y(float)
aBaseP->Y(xx); // calls Y(int) since int is a direct match inside base.