ClassifyImplicitMemberAccess assumes that if we are not in a static context then the DeclContext must be a CXXRecordDecl or a CXXMethodDecl. In the case of the unevaluated context this may not be true.
This will lead to a crash because contextClass will remain a nullptr.
Fixes: https://github.com/llvm/llvm-project/issues/37792 and https://github.com/llvm/llvm-project/issues/48405