[clang] [Clang] Avoid querying tag definitions for invalid DeclSpecs (PR #210085)

Osama Abdelkader via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 22 14:48:32 PDT 2026


================
@@ -14,6 +14,9 @@ void f() {
 struct PR209000 {
 } auto; // expected-error {{'auto' cannot be combined with a type specifier}}
 
+auto union { // expected-error {{cannot combine with previous 'auto' declaration specifier}}
+} foo<>; // expected-error {{no template named 'foo'}}
----------------
osamakader wrote:

Done. please check.

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


More information about the cfe-commits mailing list