2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / parse / template5.C
blobadc598672605b712085749b42c188b42a22da359
1 // { dg-do compile }
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 28 Jan 2003 <nathan@codesourcery.com>
6 // PR 3902. More type/decl confusion.
8 template <class T>
9 struct S
11   S foo (T (T));
12   S foo (T(const T&));
15 int main ()
17   S<int> (S<int>::*pf1)(int (int)) = &S<int>::foo;
18   S<int> (S<int>::*pf2)(int (const int&)) = &S<int>::foo;