Bug#195806: g++: inheritance of overloaded function

2003-06-02 Thread Martin v. Löwis
Heiko Scheit <[EMAIL PROTECTED]> writes: > I am not sure this is a bug, but I thought that the inheritance should > work also in this case (i.e. with overloaded functions). This is not a bug. In standard C++, methods in a derived class hide methods in the base class. Any C++ book will tell you so

Bug#195806: g++: inheritance of overloaded function

2003-06-02 Thread Heiko Scheit
Package: g++ Version: 2:2.95.4-14 Severity: normal If you try to compile the program given below you will get the following: $ g++ test.cc test.cc: In function `int main()': test.cc:24: no matching function for call to `B::p1 (int)' test.cc:16: candidates are: void B::p1() So, the function B::p1