Hello,

I have the classes A and B where B is derived from A. The following methods are
given:

bool A::method();
virtual bool A::method(int arg);

bool B::method(int);

Now when I want to call method() on an object of type B I get the compiler
error that there is no method() in class B and the only candidate is
method(int). Is this my fault with some GCC options or is this really a bug?

Thanks for looking into it.
Andreas


-- 
           Summary: Problem when deriving methods from a class with same
                    name but different argments
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pietz at gmx dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33121

Reply via email to