Deprecate some C++ extensions
authorNathan Sidwell <nathan@acm.org>
Wed, 21 Mar 2018 11:04:36 +0000 (11:04 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 21 Mar 2018 11:04:36 +0000 (11:04 +0000)
commitf82ece6b59622033b3dabf124d999d6f2fb1b6d7
tree040f797e6109bd8be5c3cf2481cdbf62aced7f9b
parent7cd9cf2f0bc24499c292896f951c2a34875637f0
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

From-SVN: r258712
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