// { dg-do compile } // Origin: Volker Reichelt // PR c++/10108: ICE in tsubst_decl for error due to non-existence // nested type. template struct A { template A(typename A::X) {} // { dg-error "does not name a type" } }; A a; // { dg-error "no match" }