OSDN Git Service

* g++.dg/parse/attr-externally-visible-1.C: Likewise.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / overload / koenig2.C
1 // Copyright (C) 2005 Free Software Foundation, Inc.
2 // Contributed by Nathan Sidwell 18 Oct 2005 <nathan@codesourcery.com>
3
4 // PR 21383
5 // Origin: Matthew Hall <mahall@ncsa.uiuc.edu>
6
7 template <class T>
8 void dummy(T& t);
9
10 void anyfunc(int x);
11
12 void Foo ()
13 {
14   anyfunc (&dummy<>); // { dg-error "cannot resolve overload" "" }
15 }