diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2023-10-05 08:51:30 -0400 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2023-10-05 08:52:12 -0400 |
commit | dc1000d5b24cfad2b0429b55f034488397d809dc (patch) | |
tree | dee71e714afc99c604bf90688c58c84a9ad955b9 /clang/lib/Sema/DeclSpec.cpp | |
parent | c73d5544d9c154d6df9720d2293c7ad4f5c757c6 (diff) | |
download | llvm-dc1000d5b24cfad2b0429b55f034488397d809dc.zip llvm-dc1000d5b24cfad2b0429b55f034488397d809dc.tar.gz llvm-dc1000d5b24cfad2b0429b55f034488397d809dc.tar.bz2 |
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
Diffstat (limited to 'clang/lib/Sema/DeclSpec.cpp')
-rw-r--r-- | clang/lib/Sema/DeclSpec.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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) |