https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70793
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2021-08-07 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Even accepts this: typedef int t; struct S { friend t; } s;