https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86648
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-12-04 CC| |jakub at gcc dot gnu.org, | |jason at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Reduced testcase: template <typename> class A; template <class T> struct B { static A a{T::a}; }; void foo () { B<int> a; } Started to ICE with -std=c++17 -g when this started to be accepted in r260150. Or e.g. template <typename> struct A {}; template <class T> struct B { static A a{T::a}; }; template <typename T> struct C { static A<T> a; }; void foo () { B<C<int>> a; } ICEs too.