re PR c++/33911 (attribute deprecated vs. templates)
authorJason Merrill <jason@redhat.com>
Mon, 17 Nov 2014 22:09:27 +0000 (17:09 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 17 Nov 2014 22:09:27 +0000 (17:09 -0500)
commit5f7282e2cb8e65e77e97001b02a13a658cec7805
tree43393cf81b5de470bf2fc196aad45e02ec102856
parent60408d8b5e83acb9ea0912f6b75eb19d68aba590
re PR c++/33911 (attribute deprecated vs. templates)

PR c++/33911
gcc/cp/
* call.c (build_call_a): Don't warn_deprecated_use here.
(build_over_call): Or here.
* decl2.c (mark_used): Do it here.
(is_late_template_attribute): Attribute deprecated is not deferred.
(cplus_decl_attributes): Propagate TREE_DEPRECATED out to the template.
* parser.c (cp_parser_template_name): Warn about deprecated template.
(cp_parser_template_argument): Likewise.
libstdc++-v3/
* include/backward/binders.h: Suppress -Wdeprecated-declarations.
* include/ext/array_allocator.h: Likewise.

From-SVN: r217677
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/decl2.c
gcc/cp/parser.c
gcc/testsuite/g++.dg/ext/attr-deprecated-1.C [new file with mode: 0644]
libstdc++-v3/ChangeLog
libstdc++-v3/include/backward/binders.h
libstdc++-v3/include/ext/array_allocator.h