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

Osama Abdelkader via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 21 06:50:44 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:

It was an oversight. Thanks.

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


More information about the cfe-commits mailing list