summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-07-16 05:46:45 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-07-16 05:46:45 +0000
commiteeb3c8419f5cfba7e54303ac041e021df918be83 (patch)
treee28427badb6f09f1426a418017971cb2ba62b5f3
parent84336ba3f875fd7ffb5e5282dfce3649db681b29 (diff)
downloadbcm5719-llvm-eeb3c8419f5cfba7e54303ac041e021df918be83.tar.gz
bcm5719-llvm-eeb3c8419f5cfba7e54303ac041e021df918be83.zip
Make this grossness default to the error it should always be.
llvm-svn: 108511
-rw-r--r--clang/include/clang/Basic/DiagnosticSemaKinds.td2
-rw-r--r--clang/test/SemaCXX/nested-name-spec.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td
index 1105204436f..018a3a1e625 100644
--- a/clang/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td
@@ -2050,7 +2050,7 @@ def err_qualified_param_declarator : Error<
"parameter declarator cannot be qualified">;
def ext_out_of_line_declaration : ExtWarn<
"out-of-line declaration of a member must be a definition">,
- InGroup<OutOfLineDeclaration>;
+ InGroup<OutOfLineDeclaration>, DefaultError;
def note_member_def_close_match : Note<"member declaration nearly matches">;
def err_typecheck_ivar_variable_size : Error<
"instance variables must have a constant size">;
diff --git a/clang/test/SemaCXX/nested-name-spec.cpp b/clang/test/SemaCXX/nested-name-spec.cpp
index acdec6183ed..0dc1097e386 100644
--- a/clang/test/SemaCXX/nested-name-spec.cpp
+++ b/clang/test/SemaCXX/nested-name-spec.cpp
@@ -102,7 +102,7 @@ void f6(int A2::RC::x); // expected-error{{parameter declarator cannot be qualif
int A2::RC::x; // expected-error{{non-static data member defined out-of-line}}
-void A2::CC::NC::m(); // expected-warning{{out-of-line declaration of a member must be a definition}}
+void A2::CC::NC::m(); // expected-error{{out-of-line declaration of a member must be a definition}}
namespace E {
OpenPOWER on IntegriCloud