OSDN Git Service

PR c++/36435
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / crash84.C
1 // Contributed by Dodji Seketeli <dodji@redhat.com>
2 // Origin PR c++/35405
3 // { dg-do compile }
4
5 template<typename T> struct a
6 {
7     template <template <typename> class C, typename X, C<X>* =0>
8     struct b // { dg-error "class C' is not a template|is not a valid type" }
9     {
10     };
11 };
12
13 void
14 foo ()
15 {
16     a<int> v; // { dg-message "required from here" }
17 }
18
19