// { dg-do compile } // Origin: Volker Reichelt // PR c++/10108: ICE in tsubst_decl for error due to non-existence // nested type. template struct A { // { not-dg-error "candidates" } template A(typename A::X) {} // { dg-error "no type" } }; A a; // { not-dg-error "instantiated|no match" } // We currently don't give the "no match" error because we don't add the // invalid constructor template to TYPE_METHODS.