PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / crash84.C
blobb3099d931c2ede5bb525e92719622ede565b7207
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
9     {
10     };
13 void
14 foo ()
16   a<int> a1; // OK
17   a<int>::b<a,int> b1; // { dg-error "template argument|converted constant" }
20 // { dg-prune-output "invalid type in declaration" }