https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109367
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2024-04-13 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. GCC thinks the type is a local type and then marks S::f as being local to that TU.