1// { dg-do assemble  }
2// Origin: Mark Mitchell <mark@codesourcery.com>
3
4template <class T>
5struct S
6{
7  template <class U>
8  friend S<U>;            // { dg-error "" } friend must use tag
9};
10
11template struct S<int>;
12