// { dg-do compile } // Copyright (C) 2007 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 22 Jul 2007 // Origin: Danny Boelens // PR 32839. Default arguments propagated through the type system to // an indirect call. template struct TPL { enum Whatever {e1, e2}; static void Quux (int i = e1 | e2); }; template void DoIt (F fun) { fun (); // { dg-error "too few arguments" } } void Foo () { DoIt (&TPL::Quux); }