1 2 3 4 5 6 7
// { dg-do assemble } class foo { friend void bar<int>(int); // { dg-error "" } must be declared first }; template <typename T> void bar(T);