Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / crash84.C
blobf622aaa5e1055ae2a85a12d9a36d2b3858e4ed0e
1 // Contributed by Dodji Seketeli <dodji@redhat.com>
2 // Origin PR c++/35405
3 // { dg-do compile }
5 template<typename T> struct a
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     };
13 void
14 foo ()
16     a<int> v; // { dg-message "instantiated from here" }