Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / g++.old-deja / g++.pt / spec22.C
1 // { dg-do assemble  }
2
3 template <class T>
4 struct S
5 {
6   template <class U>
7   void f();
8 };
9
10
11 template <class T> 
12 template <> // { dg-error "enclosing class templates|invalid explicit specialization" }
13 void S<T>::f<int> ()
14 {
15 }