https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66901
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |8.1.0, 9.1.0 Ever confirmed|0 |1 Known to fail| |7.5.0 Keywords| |needs-bisection Last reconfirmed| |2021-12-03 Status|RESOLVED |NEW Resolution|DUPLICATE |--- --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reopening since this looks unrelated. It looks like it was fixed in GCC 8+ though: <source>:5:19: error: declaration of 'struct X::S' in namespace 'X::Y' which does not enclose 'X::Y::Z' struct Z::S {}; ^