https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90670
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=86491 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Adam Byrd from comment #3) > I'm not aware of an anonymous namespace being involved here. Is that > language esoterica or a compiler implementation detail? Since GCC 13, the diagnostic is: In file included from t66.cc:1: t66.h:7:8: warning: ‘seGccBugJob’ has a field ‘seChildScheduleAccess<DummyId> seGccBugJob::m_test’ whose type has internal linkage [-Wsubobject-linkage] 7 | struct seGccBugJob | ^~~~~~~~~~~ Basically the diagnostic was not updated for C++11 changes ...