summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash112.C
blob: 919c887fd90534aad354a82f10365fe8caea4f32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/51370

struct A
{
  template<typename> void foo() {}
};

template<void (A::*)()> struct B {}; // { dg-error "declaration" }

template<int> struct C
{
  B<&A::foo<int int> > b; // { dg-error "declaration|type" }
};

C<0> c;