================
@@ -3190,6 +3190,11 @@ bool Sema::SubstDefaultArgument(
            << FD << PatternExpr->getSourceRange();
   }
 
+  // Exit early if argument has error, we should've emitted the diagnostic when
----------------
shafik wrote:

Yeah, it is not clear to me this is a great solution, what is the diagnostic 
emitted look like? Have you looked into catching this at an earlier point?

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

Reply via email to