re PR c++/53184 (Unnecessary anonymous namespace warnings)
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 9 Sep 2015 16:48:13 +0000 (16:48 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 9 Sep 2015 16:48:13 +0000 (16:48 +0000)
commit273aa49e2fe00de54cb1dbe67f1a6155fb47439b
tree0ad812fa2bbf444384d10521cdec8160614a07e0
parent1842a04ce06a470b731bc9a29bfec17e6e147c3f
re PR c++/53184 (Unnecessary anonymous namespace warnings)

2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/53184
* doc/invoke.texi ([Wsubobject-linkage]): Document.

/c-family
2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/53184
* c.opt ([Wsubobject-linkage]): Add.

/cp
2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/53184
* decl2.c (constrain_class_visibility): Use Wsubobject-linkage.

/testsuite
2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/53184
* g++.dg/warn/Wsubobject-linkage-1.C: New.
* g++.dg/warn/Wsubobject-linkage-2.C: Likewise.
* g++.dg/warn/Wsubobject-linkage-3.C: Likewise.
* g++.dg/warn/Wsubobject-linkage-4.C: Likewise.

From-SVN: r227593
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c.opt
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wsubobject-linkage-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wsubobject-linkage-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wsubobject-linkage-3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wsubobject-linkage-4.C [new file with mode: 0644]