// { dg-do assemble } // Copyright (C) 1999 Free Software Foundation // by Alexandre Oliva // simplified from bug report by redleaf struct B { template void bar(); } b; template void foo() { b.bar(); // { dg-bogus "" } bar undeclared b.template bar(); // { dg-bogus "" } ditto b.B::bar(); } template void foo(); // { dg-bogus "" }