Debian Codegraph @

gcc/testsuite/g++.dg/overload/koenig2.C

raw
1 // Copyright (C) 2005 Free Software Foundation, Inc.
2 // Contributed by Nathan Sidwell 18 Oct 2005 <[email protected]>
3
4 // PR 21383
5 // Origin: Matthew Hall <[email protected]>
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 }