https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68679
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org, | |jason at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Reduced testcase: typedef struct { struct { unsigned d[4]; template<typename T> unsigned operator[] (T i) const { return d[i]; } } c; } A; The ICE is because TYPENAME_DECL appears among the methods.