[llvm-bugs] [Bug 45343] New: Regression: Linker error: Required destructor

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Mar 29 05:32:15 PDT 2020


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

            Bug ID: 45343
           Summary: Regression: Linker error: Required destructor
           Product: clang
           Version: 10.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jvapen at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

Duplicate of BUG45342 as something went wrong logging it -> internal error of
the bug tracker

// C:\LLVM_9_0_0\bin\clang-cl.exe /c /EHsc /std:c++17 -w t.cpp /Fot_09.obj
// C:\LLVM_10_0_0\bin\clang-cl.exe /c /EHsc /std:c++17 -w t.cpp /Fot_10.obj
// dumpbin.exe /symbols t_09.obj >t_09.symbols
// dumpbin.exe /symbols t_10.obj >t_10.symbols
class I {
public:
  virtual ~I() = default;
};
class B : public virtual I {
public:
  virtual ~B() = default;
};
class C final : public virtual I, public B {
public:
  explicit C();
  virtual ~C();
};
void f() {
  auto c = new C{};
  delete c;
}

Missing symbol when trying to link ~I
Part of t_10.symbols:
020 00000000 UNDEF  notype       External     | ??1I@@UEAA at XZ (public: virtual
__cdecl I::~I(void))

In LLVM 9.0.0 this symbol ain't required to link, in LLVM 10.0.0 it suddently
becomes required.

-- 
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/20200329/ae473739/attachment-0001.html>


More information about the llvm-bugs mailing list