[llvm-bugs] [Bug 35944] incorrect weak-vtables warning on abstract base class

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jan 14 07:37:16 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=35944

Christian Maaser <llvm at boxie.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Christian Maaser <llvm at boxie.eu> ---
The reason for this warning seems to be that a pure virtual destructor's
definition cannot be key function for where to place the vtable. See 
https://stackoverflow.com/questions/28786473/clang-no-out-of-line-virtual-method-definitions-pure-abstract-c-class/40550578
and
http://clang.llvm.org/doxygen/classclang_1_1ASTContext.html#a439522ed0cae62952acae5f30f283de2

> NOTE: In the abstract, a pure virtual destructor could be used as the key
> function, as it must be defined even though it is pure. However, the ABI
> committee did not realize this fact until after the specification of key
> function was complete; therefore a pure virtual destructor cannot be the
> key function.

-- 
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/20180114/2e52f48c/attachment.html>


More information about the llvm-bugs mailing list