// { dg-do assemble } // Origin: Jason Merrill template struct A { struct B; }; template struct C { friend typename A::B; // { dg-error "" } `typename' not allowed };