https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96097
--- Comment #5 from Michael Bruck <bruck.michael at gmail dot com> --- Further simplified code template <template <typename T, typename T::type> typename> void func() {} template <typename, int> struct Y {}; void test() { func<Y>(); }