https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87295
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Reduced testcase for -O2 -g -fdebug-types-section: struct A {}; namespace N { struct B { using C = struct H {}; using D = A; }; } struct E : N::B { typedef C C; }; namespace N { struct F { E::C d; E::D h; }; } struct G { N::F i; } j;