http://llvm.org/bugs/show_bug.cgi?id=19285

            Bug ID: 19285
           Summary: virtual operator()(y&) overload  hides inherited
                    virtual operator()(x&) causes compilation failure
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Hi, I have reviewed the bug list and don't see an obvious match for my issue. 

I have a virtual interface (A) which defines;

virtual char operator()(x&)=0; // x is one of my classes

this interface is publicly inherited by another interface (B) which defines;

virtual char operator()(y&)=0; // y is a different class

When I compile this I get and error reporting no known conversion from x to y;
both implementations are defined in the implementing class.

If I add a duplicate definition of A's operator definition to the one in B's so
that B contains both operator definitions, the code compiles.

This is repeatable using my code. If you need an example I can create one.


Best regards
Ray
Terran Systems Limited

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to