Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.jason / template6.C
blob2aec05c81e993c14d18d327095e707c8e182c24c
1 // { dg-do run  }
2 // PRMS Id: 4656
3 // Testcase for use of member pointers in template resolution
5 template <class T> class A {
6  public:
7   A() : a(1) {}
8   T a;
9 };
11 template <class T>
12 int foo (T A<int>::*p)
14   return 0;
16 int main()
18   int A<int>::*pm = &A<int>::a; // { dg-bogus "" } failed temp resolution
19   foo (pm);
20   return 0;