// { 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 "no type" } }; // We currently don't give the "no match" error because we don't add the // invalid constructor template to TYPE_METHODS. A a; // { dg-message "required" }