// Build don't link: // 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); // gets bogus error - no matching function for call - XFAIL *-*-* } int main() { moo_t x; foo(x); // gets bogus error - instantiated from here - XFAIL *-*-* }