2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memclass7.C
blobec9c58cc09aaad4ab4c87e03812cbaeb82c63d1c
1 // { dg-do run  }
2 // { dg-options "-ansi -pedantic-errors -w" }
3 struct S 
5   template <class U>
6   struct Y {
7     template <class T>
8     void foo(T t);
9   };
12 template <>
13 template <>
14 void S::Y<char>::foo<int>(int i) { }
16 int main()
18   S::Y<char> s;
19   s.foo<int>(3.0);