summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash84.C
blob: f622aaa5e1055ae2a85a12d9a36d2b3858e4ed0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Contributed by Dodji Seketeli <dodji@redhat.com>
// Origin PR c++/35405
// { dg-do compile }

template<typename T> struct a
{
    template <template <typename> class C, typename X, C<X>* =0>
    struct b // { dg-error "class C' is not a template|is not a valid type" }
    {
    };
};

void
foo ()
{
    a<int> v; // { dg-message "instantiated from here" }
}