OSDN Git Service

add
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / explicit13.C
1 // Build don't run:
2 // GROUPS passed templates
3
4 template <class U>
5 struct S 
6 {
7   template <class T>
8   void foo(T t);
9
10   template <>
11   void foo(int) { }
12
13   template <class T>
14   void bar(T t) { this->template foo<U>(3.74); }
15 };
16
17 int main()
18 {
19   S<int> s;
20   s.bar(3);
21 }