1 // { dg-do compile } 2 3 // Origin: Volker Reichelt <reichelt@gcc.gnu.org> 4 5 // PR c++/10793: ICE in handling base class when the current class 6 // contains error. 7 8 template <typename> struct A {}; 9 template <typename> struct A<INVALID> : A<int> { }; // { dg-error "not declared|invalid|token|extra" } 10