diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-06-17 03:41:35 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-06-17 03:41:35 +0000 |
commit | 51d7cdd4bfd11e0eeac55517419d0ebba0abb4cb (patch) | |
tree | 77909022263de65e4ef90926111c615c90115201 /lib/Sema/SemaDecl.cpp | |
parent | e3e07a5b3490bc2977859d56bac211afac2236fb (diff) |
Downgrade the error complaining about presence of a storage class
specifier on an explicit specialization to a warning, since neither
EDG nor GCC diagnose this code as ill-formed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133232 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 4476211bc0..1d92c162a4 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -4663,7 +4663,7 @@ Sema::ActOnFunctionDeclarator(Scope* S, Declarator& D, DeclContext* DC, // specialization (14.7.3) if (SC != SC_None) { Diag(NewFD->getLocation(), - diag::err_explicit_specialization_storage_class) + diag::ext_explicit_specialization_storage_class) << FixItHint::CreateRemoval(D.getDeclSpec().getStorageClassSpecLoc()); } |