aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/pr38646.C
blob: 7dd53ae26305469e1821c82c0e90fc17fc97b8b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR c++/38646 */
/* { dg-do compile { target c++11 } } */

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*> {};
};