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
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" }