// A variant of deduce4.C with multiple overloads of foo. Verify we don't // crash after ahead-of-time pruning of the overload set for the non-dependent // call to foo. // { dg-do compile } template struct S { template static void foo(V) { } template static void foo(...) { } void bar () { foo(10); } }; void test () { S s; s.bar (); }