This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11664] Bad overload resolution in recursive template


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]