FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / template6.C
blobc42426a19081a565a463f37edfcb1b5472a875ff
1 // PRMS Id: 4656
2 // Testcase for use of member pointers in template resolution
4 template <class T> class A {
5  public:
6   A() : a(1) {}
7   T a;
8 };
10 template <class T>
11 int foo (T A<int>::*p)
13   return 0;
15 int main()
17   int A<int>::*pm = &A<int>::a; // gets bogus error - failed temp resolution
18   foo (pm);
19   return 0;