Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.pt / crash18.C
bloba331dd4e5d0cfe8e2e450067de66448a43b81e99
1 // { dg-do link  }
3 template<class T>
4 class foo {
5   T deft;
7   template<class U> int priv (U u, T t) { return u - t; }
8 public:
9   foo (T t) : deft (t) {}
11   template<class U> int pub (U u) {
12     int (foo::*fn) (U, T);
13     fn = &foo<T>::template priv<U>;
14     return (this->*fn) (u, deft);
15   }
18 int
19 main ()
21   foo<long> fff (5);
22   return fff.pub (3);