PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / crash13.C
blob6e0fb39312143ae99e31a50bc5a56fcbc8d712ef
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 *-*-* } .-1 }
19 C<void> c;