summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/pr38646.C
blob: f15fc8c29bbaf55d0949c046d246731f10f5d378 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR c++/38646 */
/* { dg-do compile } */
/* { dg-options "-std=c++0x" } */

template<int...> struct A;

template<int... N> struct A<N..., N...> /* { dg-error "must be at the end" } */
{
  template<typename> struct B;

  template<typename T> struct B<T*> {};
};