From dc1000d5b24cfad2b0429b55f034488397d809dc Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 5 Oct 2023 08:51:30 -0400 Subject: Revert "[C2X] N3007 Type inference for object definitions" This reverts commit 5d78b78c853830516e734cfa64bfba70479e35dc. Reverting due to the failure found by: https://lab.llvm.org/buildbot/#/builders/245/builds/14999 --- clang/lib/Sema/DeclSpec.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'clang/lib/Sema/DeclSpec.cpp') diff --git a/clang/lib/Sema/DeclSpec.cpp b/clang/lib/Sema/DeclSpec.cpp index 781f24c..2d0d575 100644 --- a/clang/lib/Sema/DeclSpec.cpp +++ b/clang/lib/Sema/DeclSpec.cpp @@ -1375,9 +1375,8 @@ void DeclSpec::Finish(Sema &S, const PrintingPolicy &Policy) { StorageClassSpecLoc = SourceLocation(); } // Diagnose if we've recovered from an ill-formed 'auto' storage class - // specifier in a pre-C++11 dialect of C++ or in a pre-C23 dialect of C. - if (!S.getLangOpts().CPlusPlus11 && !S.getLangOpts().C23 && - TypeSpecType == TST_auto) + // specifier in a pre-C++11 dialect of C++. + if (!S.getLangOpts().CPlusPlus11 && TypeSpecType == TST_auto) S.Diag(TSTLoc, diag::ext_auto_type_specifier); if (S.getLangOpts().CPlusPlus && !S.getLangOpts().CPlusPlus11 && StorageClassSpec == SCS_auto) -- cgit v1.1