[Bug c++/106141] Better wording for warning: ‘Child’ has a base ‘Base<(& hello)>’ whose type uses the anonymous namespace [-Wsubobject-linkage]

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jun 30 04:10:03 GMT 2022


Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Duplicate of bug 86491.
Yes we agree that the diagnostic should reference internal linkage.
The warning was added before c++11 support was added which is why it mentions
anonymous namespace.

*** This bug has been marked as a duplicate of bug 86491 ***

More information about the Gcc-bugs mailing list