Debian Codegraph @

gcc/testsuite/g++.dg/template/crash7.C

raw
1 // { dg-do compile }
2
3 // Origin: Volker Reichelt <[email protected]>
4
5 // PR c++/10108: ICE in tsubst_decl for error due to non-existence
6 // nested type.
7
8 template <typename> struct A
9 {
10 template <typename> A(typename A::X) {} // { dg-error "does not name a type" }
11 };
12
13 A<void> a; // { dg-error "no match" }