Deprecate some C++ extensions
commit063bbeeef1bc7c6c7b564da4b9855747aeacb277
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Mar 2018 11:04:36 +0000 (21 11:04 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Mar 2018 11:04:36 +0000 (21 11:04 +0000)
tree040f797e6109bd8be5c3cf2481cdbf62aced7f9b
parent7ff089f855ef4ce0f83bff57ee7122543c0ca6b3
Deprecate some C++ extensions

https://gcc.gnu.org/ml/gcc-patches/2018-03/msg00995.html
* doc/extend.texi (Deprecated Features): Update deprecared flags,
mention anon-struct/union members and trailing attributes.

cp/
* class.c (finish_struct_anon_r): Refactor, deprecate anything
other than public non-static data members.
* parser.c (cp_parser_init_declarator): Deprecate attributes after
parenthesized initializer.

testsuite/
* g++.dg/ext/anon-struct6.C: Adjust.
* g++.dg/ext/deprecate-1.C: New.
* g++.dg/ext/deprecate-2.C: New.
* g++.dg/lookup/pr84602.C: Adjust.
* g++.dg/lookup/pr84962.C: Adjust.
* g++.old-deja/g++.other/anon4.C

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258712 138bc75d-0d04-0410-961f-82ee72b054a4
12 files changed:
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/parser.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/anon-struct6.C
gcc/testsuite/g++.dg/ext/deprecate-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/deprecate-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lookup/pr84602.C
gcc/testsuite/g++.dg/lookup/pr84962.C
gcc/testsuite/g++.old-deja/g++.other/anon4.C