OSDN Git Service

PR c++/10446
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / parse / template5.C
1 // { dg-do compile }
2
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 28 Jan 2003 <nathan@codesourcery.com>
5
6 // PR 3902. More type/decl confusion.
7
8 template <class T>
9 struct S
10 {
11   S foo (T (T));
12   S foo (T(const T&));
13 };
14
15 int main ()
16 {
17   S<int> (S<int>::*pf1)(int (int)) = &S<int>::foo;
18   S<int> (S<int>::*pf2)(int (const int&)) = &S<int>::foo;
19 }