[clang] [Clang] Reland: Diagnose invalid function types in dependent contexts (PR #139246)

2025-05-09 Thread Jay Feldblum via cfe-commits
@@ -60,3 +61,98 @@ void f3() { f2(0); f2(0); // expected-error {{no matching function for call to 'f2'}} } + +#if __cplusplus >= 202002L +namespace GH138657 { +template // #gh138657-template-head +class meta {}; +template +class meta {}; // expected-error {{called object t

[clang] [Clang] Reland: Diagnose invalid function types in dependent contexts (PR #139246)

2025-05-09 Thread Jay Feldblum via cfe-commits
@@ -60,3 +61,98 @@ void f3() { f2(0); f2(0); // expected-error {{no matching function for call to 'f2'}} } + +#if __cplusplus >= 202002L +namespace GH138657 { +template // #gh138657-template-head +class meta {}; +template +class meta {}; // expected-error {{called object t

[clang] [Clang] Diagnose invalid function types in dependent contexts (PR #138731)

2025-06-30 Thread Jay Feldblum via cfe-commits
yfeldblum wrote: @cor3ntin Just to follow up here. Thanks for reverting and re-landing a fixed version. I haven't seen the problem reappear in any of the projects I work on. https://github.com/llvm/llvm-project/pull/138731 ___ cfe-commits mailing list