aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/crash32.C
blob: 0be26eab414ced67c89d11f9c8332a0e143f3663 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-options "-std=c++98 -pedantic-errors" }
// { dg-do assemble  }
// Origin: Jason Merrill <jason@cygnus.com>

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

template<class T> struct C
{
  friend typename A<T>::B; // { dg-error "" } `typename' not allowed
};