PR c++/54511
[official-gcc.git] / gcc / testsuite / g++.dg / template / crash13.C
blob14bec68e9b32333d3871dbf59f4895e84e80cb38
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" }
16 // { dg-warning "deprecated" "" { target *-*-* } 15 }
19 C<void> c;