<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 --- - No -Wdeprecated-declarations at all on virtual calls"
href="http://llvm.org/bugs/show_bug.cgi?id=19423">19423</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>No -Wdeprecated-declarations at all on virtual calls
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>stephan.bergmann.secondary@googlemail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>As discussed in the mail thread
<<a href="http://clang-developers.42468.n3.nabble.com/No-Wdeprecated-declarations-at-all-on-virtual-calls-td4038378.html">http://clang-developers.42468.n3.nabble.com/No-Wdeprecated-declarations-at-all-on-virtual-calls-td4038378.html</a>>:
The code
<span class="quote">> bool ShouldCheckUse = true;
> if (CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(MemberDecl)) {
> // Don't diagnose the use of a virtual member function unless it's
> // explicitly qualified.
> if (MD->isVirtual() && !SS.isSet())
> ShouldCheckUse = false;
> }</span >
in lib/Sema/SemaExprMember.cpp, originally introduced with r81460 to fix
<<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - ability to call deprecated virtual methods in the same class without warning"
href="show_bug.cgi?id=4878">http://llvm.org/bugs/show_bug.cgi?id=4878</a>> "ability to call deprecated virtual
methods in the same class without warning" prevents warnings on all virtual
calls to such deprecated functions. Not just when the call is from the same
class, but also when a client of that class calls the function.</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>