OSDN Git Service

PR c++/30849
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / parse / ambig1.C
1 // { dg-do compile }
2
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 4 Jan 2003 <nathan@codesourcery.com>
5
6 // PR 9109. Ambiguity. [dcl.ambig.res]/7
7
8 template <typename T> void Foo (int (T))
9 {
10   try {}
11   catch (int (T)) {}
12 }