// { dg-do assemble } // { dg-prune-output "note" } // Adapted from testcase by Corey Kosak template struct moo_t { struct cow_t {}; }; template void foo(typename moo_t::cow_t) {} template void foo(moo_t) { typename moo_t::cow_t p; foo(p); // { dg-bogus "" "" { xfail *-*-* } } - no matching function for call - } int main() { moo_t x; foo(x); // { dg-bogus "" "" { xfail *-*-* } } - required from here - }