[llvm-bugs] [Bug 38354] Clang-cl generates more code, in this case the Dtor. Resulting in link errors

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 1 00:24:18 PDT 2018


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

JVApen <jvapen at gmail.com> changed:

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

--- Comment #2 from JVApen <jvapen at gmail.com> ---
Hi Reid,

I've tested this example with /Zc:inline as well as the whole codebase I'm
working on for MSVC. This doesn't cause any linking error at all. This makes me
assume that MSVC handles the implicit default methods differently. (I've also
noticed something similar for classes containing unique_ptr as member, where
Dtor also required extra include)

This makes me assume that this bug ain't just about 'inline' and more about the
default member functions. Would you mind taking a second look?

FYI: My current fix for this code is actually to add: B::~B(){} in the Cpp (+
matching thing in header)

-- 
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/20180801/9deddd5d/attachment.html>


More information about the llvm-bugs mailing list