Closed Quuxplusone closed 2 years ago
I've managed to fix this locally by adding
if (S.isUnevaluatedContext())
return ExprError();
after the S.Diag
; but I don't know if there might be a less blunt instrument available.
This is now https://reviews.llvm.org/D117603
@llvm/issue-subscribers-clang-frontend
This program hard-errors trying to complete
Holder<Incomplete>
; but it shouldn't.It appears to me that the problem is here, in
LookupMemberExpr
:That second recursive call to
LookupMemberExpr
triggers completion of the pointed-to type, which is not OK if we're in a SFINAE context.