summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-06-17 03:41:35 +0000
committerDouglas Gregor <dgregor@apple.com>2011-06-17 03:41:35 +0000
commitc976f01d3f9e729b7b6d36445cafe53d072efd14 (patch)
tree2e307f7fbcf7560171225c45d9507eed79af6f54 /clang/lib/Sema/SemaDecl.cpp
parentf3dd93c888afa9dcdbd7da6d6e09c879ce6b2cb2 (diff)
downloadbcm5719-llvm-c976f01d3f9e729b7b6d36445cafe53d072efd14.tar.gz
bcm5719-llvm-c976f01d3f9e729b7b6d36445cafe53d072efd14.zip
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. llvm-svn: 133232
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 4476211bc0d..1d92c162a4e 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/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());
}
OpenPOWER on IntegriCloud