FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp100.C
blobc88c3e7a2f56860c865c1b740f80ce78fbfe931b
1 // Build don't link:
2 // Origin: philippeb@videotron.ca
3 // Special g++ Options:
5 #include <iostream>
7 using namespace std;
9 template <class T> struct traits
11   typedef long next;
15 template <class T>
16 struct c1
18   template <class U>
19   struct c2
20   {
21     c2()
22     {
23       cout << __PRETTY_FUNCTION__ << endl;
24     }
25   };
29 template <class T>
30 void foo()
32   cout << __PRETTY_FUNCTION__ << endl;
33   typename c1<typename traits<T>::next>::template c2<void>();
37 int main()
39   foo<int>();