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
7template <class T>
8void dummy(T& t);
9
10void anyfunc(int x);
11
12void Foo ()
13{
14  anyfunc (&dummy<>); // { dg-error "cannot resolve overload" "" }
15}
16