OSDN Git Service

PR c++/48969
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / crash7.C
1 // { dg-do compile }
2
3 // Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4
5 // PR c++/10108: ICE in tsubst_decl for error due to non-existence
6 // nested type.
7
8 template <typename> struct A    // { dg-message "A.void.::A.const A" }
9 {
10     template <typename> A(typename A::X) {} // { dg-error "no type" }
11 };
12
13 A<void> a;      // { dg-error "required|no match" }
14 // { dg-prune-output "note" }