[clang] [clang] Avoid triggering vtable instantiation for C++23 constexpr dtor (PR #102605)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 9 06:01:35 PDT 2024
================
@@ -7042,12 +7042,38 @@ void Sema::CheckCompletedCXXClass(Scope *S, CXXRecordDecl *Record) {
}
}
+ bool EffectivelyConstexprDestructor = true;
+ // Avoid triggering vtable instantiation due to a dtor that is not
+ // "effectively constexpr" for better compatibility.
----------------
cor3ntin wrote:
I think we want more comment here (and/or a reference to the issue)
https://github.com/llvm/llvm-project/pull/102605
More information about the cfe-commits
mailing list