[PATCH] D130936: [SemaCXX] Validate destructor is valid for dependent classes
Hubert Tong via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 9 16:27:59 PDT 2022
hubert.reinterpretcast added a comment.
This does not work for friend declarations.
template <typename T>
struct A {
friend T::S::~S();
private:
static constexpr int secret = 42;
};
struct Q {
struct S { ~S(); };
};
Q::S::~S() {
void foo(int);
foo(A<Q>::secret);
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130936/new/
https://reviews.llvm.org/D130936
More information about the cfe-commits
mailing list