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

void foo(int);

struct A
{
  static void foo(A);
};

template <typename T> struct B : T
{
  B() { foo(T()); } // { dg-error "cannot convert" }
};

B<A> b;