Relands Original PR: https://github.com/llvm/llvm-project/pull/131965 Addresses https://github.com/llvm/llvm-project/pull/131965#issuecomment-2741619498 * Fixes isIncompleteType for injected classes This clears up some uses of getClass on MemberPointerType when equivalent uses of getMostRecentCXXRecordDecl would be just as simple or simpler. This is split-off from a larger patch which removes getClass, in order to facilitate review.
10 lines
322 B
C++
10 lines
322 B
C++
// RUN: %clang_cc1 -triple x86_64-windows-msvc -verify -std=c++26 %s
|
|
// RUN: %clang_cc1 -triple x86_64-windows-msvc -fdelayed-template-parsing -verify -std=c++26 %s
|
|
// expected-no-diagnostics
|
|
|
|
namespace dependent_complete {
|
|
template <class> struct A {
|
|
void f(void (A::*)()) {}
|
|
};
|
|
} // namespace dependent_complete
|