diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-24 18:10:23 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-24 18:10:23 +0000 |
commit | 39304fad1c8a7b7e64121e9ae544b18e460b682c (patch) | |
tree | 2595c4d7de16d748a0a7773c6f28ef5701181168 /lib/Sema/DeclSpec.cpp | |
parent | ca61bf3b38bf206113b6a8e6c21feff90b110cd6 (diff) |
__decltype is a GNU extension, not a C++11 extension.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151377 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/DeclSpec.cpp')
-rw-r--r-- | lib/Sema/DeclSpec.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Sema/DeclSpec.cpp b/lib/Sema/DeclSpec.cpp index 11818f6fa2..72a51bc474 100644 --- a/lib/Sema/DeclSpec.cpp +++ b/lib/Sema/DeclSpec.cpp @@ -898,8 +898,6 @@ void DeclSpec::Finish(DiagnosticsEngine &D, Preprocessor &PP) { if (TypeSpecType == TST_char16 || TypeSpecType == TST_char32) Diag(D, TSTLoc, diag::warn_cxx98_compat_unicode_type) << (TypeSpecType == TST_char16 ? "char16_t" : "char32_t"); - if (TypeSpecType == TST_decltype) - Diag(D, TSTLoc, diag::warn_cxx98_compat_decltype); if (Constexpr_specified) Diag(D, ConstexprLoc, diag::warn_cxx98_compat_constexpr); |