// { dg-do compile } // Origin: Volker Reichelt // PR c++/11076: ICE for invalid access declaration containing typename. template struct A { typedef A B; }; template struct C { typedef typename A::B X; X::Y; // { dg-error "not a base type" } // { dg-warning "deprecated" "" { target *-*-* } 15 } }; C c;