aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/testsuite/g++.dg/template/crash106.C
blob: c2d117e03a07fcc50688c499c9348e29d7a69c17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/47974

typedef double T;

struct A
{
  template<T> void foo(); // { dg-error "type" }
};

template<T N = 0, void (A::*)() = &A::foo<N> > struct B {}; // { dg-error "type|declared" }

B<> b; // { dg-error "type|declaration" }