[LLVMbugs] [Bug 19285] New: virtual operator()(y&) overload hides inherited virtual operator()(x&) causes compilation failure
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Mar 30 02:42:50 PDT 2014
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: unassignedclangbugs at nondot.org
Reporter: rju65 at terransystems.com
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140330/6d055c69/attachment.html>
More information about the llvm-bugs
mailing list