struct test_box { void print(void); }; void test (test_box *); // ERROR - illegal code class test_square { friend void test (test_box *); } template void test(BOX *the_box) // ERROR - semicolon missing { the_box->print(); }; template void test<> (test_box *); // gets bogus error - test is declared XFAIL *-*-*