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