This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11664] Bad overload resolution in recursive template
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jul 2003 21:55:27 -0000
- Subject: [Bug c++/11664] Bad overload resolution in recursive template
- References: <20030724204315.11664.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11664
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From bangerth at dealii dot org 2003-07-24 21:55 -------
This is not a bug: the declaration of the function in the derived class
hides the one in the base class. You can either use a using-declaration
in the derived class like
class T : public Mixin<T> {
public:
Mixin<T>::Bar;
void Foo(int i) {}
void Foo() {}
void Bar() {}
int i;
};
or qualify the use of the function:
t.Mixin<T>::Bar(1);
W.