================
@@ -1369,7 +1369,7 @@ void DeclSpec::Finish(Sema &S, const PrintingPolicy 
&Policy) {
 
   if (S.getLangOpts().C23 &&
       getConstexprSpecifier() == ConstexprSpecKind::Constexpr &&
-      StorageClassSpec == SCS_extern) {
+      (StorageClassSpec == SCS_extern || StorageClassSpec == SCS_auto)) {
----------------
Fznamznon wrote:

Shouldn't we also check that a type specifier was also provided?

https://github.com/llvm/llvm-project/pull/163469
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to