Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/crash32.C

raw
1 // { dg-options "-std=c++98 -pedantic-errors" }
2 // { dg-do assemble }
3 // Origin: Jason Merrill <[email protected]>
4
5 template <class T> struct A
6 {
7 struct B;
8 };
9
10 template<class T> struct C
11 {
12 friend typename A<T>::B; // { dg-error "" } `typename' not allowed
13 };
14