https://gcc.gnu.org/bugzilla/show_bug.cgi?id=21498
Jason Liam <jlame646 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jlame646 at gmail dot com --- Comment #16 from Jason Liam <jlame646 at gmail dot com> --- GCC still accepts the code when it is ill-formed as explained here:https://stackoverflow.com/questions/77932976/why-is-a-type-alias-not-allowed-to-be-a-friend-class-name-in-c/77932987#77932987 Here is a demo that shows that gcc accepts the invalid code: https://godbolt.org/z/sK8Trh5PG