]> granicus.if.org Git - clang/commitdiff
Make this grossness default to the error it should always be.
authorChandler Carruth <chandlerc@gmail.com>
Fri, 16 Jul 2010 05:46:45 +0000 (05:46 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 16 Jul 2010 05:46:45 +0000 (05:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108511 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
test/SemaCXX/nested-name-spec.cpp

index 1105204436fd45e237de6b4f334bde3fe845c9d1..018a3a1e6255f171c47ca0035fb92d68a8681d0c 100644 (file)
@@ -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">;
index acdec6183ed84d9e396aa3668f1430c5a2edabb8..0dc1097e3867a737738a82d63c197f12cc0c2544 100644 (file)
@@ -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 {