summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/vt-34055.C
blob: c50778430e0a05a67c655dd176b4b7b6bde7ce0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// { dg-options "-std=c++0x" }
// PR c++/34055
template<typename...> struct A;

template<typename...T> struct A<T*> // { dg-error "parameter packs|T" }
{
  void foo();
};

template<typename...T> void A<T*>::foo() {} // { dg-error "invalid declarator" }



template<typename...> struct B;

template<typename...T> struct B<T&> // { dg-error "parameter packs|T" }
{
  void foo();
};

template<typename...T> void B<T&>::foo() {} // { dg-error "invalid declarator" }


template<typename...> struct C;

template<typename...T> struct C<T()> // { dg-error "parameter packs|T" }
{
  void foo();
};

template<typename...T> void C<T()>::foo() {} // { dg-error "invalid declarator" }