summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/crash44.C
blob: 4aea2149d540cfe1d9b97e1d2420dadbf32a354b (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
// Origin: Mark Mitchell <mark@codesourcery.com>

template <class T>
struct S 
{
  template <class U>
  friend S<U>;            // { dg-error "" } friend must use tag
};

template struct S<int>;