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

            Bug ID: 45342
           Summary: Regression: Linker error: Required destructor
           Product: clang
           Version: 10.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

// 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@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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to