[clang] [Clang] Reland: Diagnose invalid function types in dependent contexts (PR #139246)
via cfe-commits
cfe-commits at lists.llvm.org
Fri May 9 08:15:54 PDT 2025
================
@@ -33,7 +33,7 @@ T f1(T t1, U u1, int i1, T** tpp)
i1 = t1[u1];
i1 *= t1;
- i1(u1, t1); // expected-error {{called object type 'int' is not a function or function pointer}}
+ i1(u1, t1);
----------------
cor3ntin wrote:
It is because that function is not instantiated
https://github.com/llvm/llvm-project/pull/139246
More information about the cfe-commits
mailing list