aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/bases2.C
blob: a8806dde83926b18b4512f359454a58a9709a99b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/60218
// { dg-do compile { target c++11 } }

template<typename...> struct A {};

template<typename T> struct B
{
  typedef A<__bases(T)...> C;
};

struct X {};
struct Y : X* {};  // { dg-error "expected" }

B<Y> b;