OSDN Git Service

revert an unattended change about access declaration
authorfabien <fabien@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Dec 2011 21:18:03 +0000 (21:18 +0000)
committerfabien <fabien@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Dec 2011 21:18:03 +0000 (21:18 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182308 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/parser.c

index 91280b7..ae15eb1 100644 (file)
@@ -18920,11 +18920,7 @@ cp_parser_member_declaration (cp_parser* parser)
   parser->colon_corrects_to_scope_p = false;
 
   if (cp_parser_using_declaration (parser, /*access_declaration=*/true))
-    {
-      warning (OPT_Wdeprecated, "access declarations are deprecated; "
-              "employ using declarations instead");
       goto out;
-    }
 
   /* Parse the decl-specifier-seq.  */
   decl_spec_token_start = cp_lexer_peek_token (parser->lexer);