1 /* PR c++/38646 */ 2 /* { dg-do compile { target c++11 } } */ 3 4 template<int...> struct A; 5 6 template<int... N> struct A<N..., N...> /* { dg-error "must be at the end" } */ 7 { 8 template<typename> struct B; 9 10 template<typename T> struct B<T*> {}; 11 }; 12