http://llvm.org/bugs/show_bug.cgi?id=19423
Bug ID: 19423
Summary: No -Wdeprecated-declarations at all on virtual calls
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
As discussed in the mail thread
<http://clang-developers.42468.n3.nabble.com/No-Wdeprecated-declarations-at-all-on-virtual-calls-td4038378.html>:
The code
> 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;
> }
in lib/Sema/SemaExprMember.cpp, originally introduced with r81460 to fix
<http://llvm.org/bugs/show_bug.cgi?id=4878> "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.
--
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