summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/crash30.C
blob: dfbef1003e00ef5a45d4ea8f4b5c8eea68e4cf77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }

extern "C" int printf(const char *, ...);
template <class T> struct A {
  typedef typename T::X B; // { dg-error "" } not a class
  A(double);
};
 
template <class T> void xxx(typename A<T>::B);
 
template <class T> struct B {
  friend void xxx<T>(T); // { dg-error "" } does not match any template
};
 
template struct B<double>;