https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106377
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2022-08-09 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Summary|A injected-class-name of a |A injected-class-name with |private class is not |class/struct key of a |accessible in the member of |private class is not |the derived class. |accessible in the member of | |the derived class. --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Looks like the problem is only with the class/struct key; without the struct (or class) keyword, GCC correctly rejects it.