// { dg-do run } // Bug: g++ generates an error trying to generate the first foo, when // it should silently fail and go on to the next one. template class A { }; template void foo(const A&); template class B { }; template void foo(B const &) { } int main(void) { B sa; foo (sa); }