r274888 - in /trunk/gcc: cp/ChangeLog cp/cp-tre...

mpolacek@gcc.gnu.org mpolacek@gcc.gnu.org
Fri Aug 23 22:04:00 GMT 2019


Author: mpolacek
Date: Fri Aug 23 22:04:32 2019
New Revision: 274888

URL: https://gcc.gnu.org/viewcvs?rev=274888&root=gcc&view=rev
Log:
	PR c++/79817 - attribute deprecated on namespace.
	* cp-tree.h (cp_warn_deprecated_use_scopes): Declare.
	* decl.c (grokdeclarator): Call cp_warn_deprecated_use_scopes.
	(type_is_deprecated): Likewise.
	* decl2.c (cp_warn_deprecated_use_scopes): New function.
	* name-lookup.c (handle_namespace_attrs): Handle attribute deprecated.
	* parser.c (cp_parser_namespace_alias_definition): Call
	cp_warn_deprecated_use_scopes.
	(cp_parser_using_declaration): Likewise.
	(cp_parser_using_directive): Likewise.
	* semantics.c (finish_id_expression_1): Likewise.

	* g++.dg/cpp0x/attributes-namespace1.C: New test.
	* g++.dg/cpp0x/attributes-namespace2.C: New test.
	* g++.dg/cpp0x/attributes-namespace3.C: New test.
	* g++.dg/cpp0x/attributes-namespace4.C: New test.
	* g++.dg/cpp0x/attributes-namespace5.C: New test.
	* g++.dg/cpp1z/namespace-attribs.C: Adjust.
	* g++.dg/cpp1z/namespace-attribs2.C: Adjust.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/attributes-namespace1.C
    trunk/gcc/testsuite/g++.dg/cpp0x/attributes-namespace2.C
    trunk/gcc/testsuite/g++.dg/cpp0x/attributes-namespace3.C
    trunk/gcc/testsuite/g++.dg/cpp0x/attributes-namespace4.C
    trunk/gcc/testsuite/g++.dg/cpp0x/attributes-namespace5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/decl2.c
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp1z/namespace-attribs.C
    trunk/gcc/testsuite/g++.dg/cpp1z/namespace-attribs2.C



More information about the Gcc-cvs mailing list