================
@@ -1514,7 +1514,8 @@ Sema::ActOnCXXTypeConstructExpr(ParsedType TypeRep,
                                           RParenOrBraceLoc, 
ListInitialization);
   if (Result.isInvalid())
     Result = CreateRecoveryExpr(TInfo->getTypeLoc().getBeginLoc(),
-                                RParenOrBraceLoc, exprs, Ty);
+                                RParenOrBraceLoc, exprs, 
Ty->isIncompleteType() ? QualType() : Ty);
----------------
erichkeane wrote:

Hmm... this isn't the right answer. We should be properly handling the 
recovery-expr where-ever this causes the problem, not by covering it up by 
giving the recovery-expr no type.

https://github.com/llvm/llvm-project/pull/191972
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to