[clang] [Clang] Improve error recovery for invalid calls (PR #136295)

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 18 18:55:26 PDT 2025


================
@@ -34,21 +34,22 @@ void test_invalid_call_1(int s) {
 
 int some_func2(int a, int b);
 void test_invalid_call_2() {
-  // CHECK:   -RecoveryExpr {{.*}} 'int' contains-errors
+  // CHECK:   -RecoveryExpr {{.*}} '<dependent type>' contains-errors
----------------
zyn0217 wrote:

And as for concepts, even if the RecoveryExpr makes it into constraint substitution, it will still be transformed into an ExprError within a SFINAE context. So the constant evaluator won't ever see it.

https://github.com/llvm/llvm-project/pull/136295


More information about the cfe-commits mailing list