PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / overload6.C
blob8d574e73087bde73ef73fdf44d5e9b87e6782fe0
1 // Copyright (C) 2005 Free Software Foundation, Inc.
2 // Contributed by Nathan Sidwell 12 Oct 2005 <nathan@codesourcery.com>
4 // PR 21592:ICE
5 // Origin:  Volker Reichelt <reichelt@gcc.gnu.org>
7 template<typename T> void unique(T,T);
9 struct A
11   int begin();
14 template<int> void foo()
16   unique(A().begin); // { dg-error "invalid use of non-static member function" }