aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/spec22.C
blob: 94bffdbecaa6fa86438bf9fd1a2670f6545b9aa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }

template <class T>
struct S
{
  template <class U>
  void f();
};


template <class T> 
template <> // { dg-error "enclosing class templates|invalid explicit specialization" }
void S<T>::f<int> ()
{
}