summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/crash32.C
blob: af6ef5b95cd36560a0f031971de1e845d1a18902 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Build don't link:
// Origin: Jason Merrill <jason@cygnus.com>

template <class T> struct A
{
  struct B;
};

template<class T> struct C
{
  friend typename A<T>::B; // ERROR - struct is required
};