https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89766
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code --- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Another (hopefully valid) testcase, accepted by trunk, r269511 and clang++, all with -std=c++17, ICEs with r269512 and up. struct A; template <typename, template <typename> class> struct B; template <template <typename> class T> struct B<int, T>; template <class> struct C { template <class> int operator[] (int) const; template <class T> int operator[] (A) const; };