[C++ PATCH] Deprecate -ffriend-injection
authorNathan Sidwell <nathan@acm.org>
Fri, 16 Feb 2018 16:21:36 +0000 (16:21 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 16 Feb 2018 16:21:36 +0000 (16:21 +0000)
commit3943b161342a68ec90a7b977cf6a8e451671e25d
tree282b1d1719ed513f3ba4f31dc34994199012094a
parentd65da12f2b93cea64a7122022208439cd282dfc2
[C++ PATCH] Deprecate -ffriend-injection

https://gcc.gnu.org/ml/gcc-patches/2018-02/msg00998.html
Deprecate -ffriend-injection.
* decl.c (cxx_init_decl_processing): Emit warning on option.
* name-lookup.c (do_pushdecl): Emit warning if we push a visible
friend.

* doc/extend.texi (Backwards Compatibility): Mention friend
injection.  Note for-scope is deprecated.
* doc/invoke.texi (-ffriend-injection): Deprecate.

* g++.old-deja/g++.jason/scoping15.C: Expect warnings.
* g++.old-deja/g++.mike/net43.C: Likewise.

From-SVN: r257742
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/name-lookup.c
gcc/doc/extend.texi
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.jason/scoping15.C
gcc/testsuite/g++.old-deja/g++.mike/net43.C