Merge from trunk @ 138209
[official-gcc.git] / gcc / testsuite / g++.dg / template / crash7.C
blobae07d91e739972bc81a512ebe0448ee7aa368f48
1 // { dg-do compile }
3 // Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5 // PR c++/10108: ICE in tsubst_decl for error due to non-existence
6 // nested type.
8 template <typename> struct A
9 {                                       // { not-dg-error "candidates" }
10     template <typename> A(typename A::X) {} // { dg-error "no type" }
13 A<void> a;      // { not-dg-error "instantiated|no match" }
14 // We currently don't give the "no match" error because we don't add the
15 // invalid constructor template to TYPE_METHODS.