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: unassignedclangb...@nondot.org
Reporter: jva...@gmail.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
neeil...@live.com, richard-l...@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@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
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs