<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - virtual operator()(y&) overload hides inherited virtual operator()(x&) causes compilation failure"
href="http://llvm.org/bugs/show_bug.cgi?id=19285">19285</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>virtual operator()(y&) overload hides inherited virtual operator()(x&) causes compilation failure
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.4
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rju65@terransystems.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>