https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117505
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |97475 Keywords|ice-on-valid-code |ice-on-invalid-code --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Oh yes this code is actually invalid now due to the https://wg21.link/p1766r1 . I suspect once we start rejecting it, the ICE will go away. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97475 [Bug 97475] An unnamed class with a typedef name for linkage purposes having a method.