2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / crash13.C
blob50ec37f2eae2ed918affc892563d73ddd3d87f45
1 // { dg-do compile }
3 // Origin: Volker Reichelt <reichelt@gcc.gnu.org>
5 // PR c++/11076: ICE for invalid access declaration containing typename.
7 template<typename, typename T=void> struct A
9     typedef A<T,T> B;
12 template <typename T> struct C
14     typedef typename A<T>::B X;
15     X::Y;                       // { dg-error "not a base type" }
18 C<void> c;                      // { dg-error "instantiated" }