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

struct A
{
  template<typename T> operator T() { return T(); }
};

template<int> void foo()
{
  A().operator int();
}

void bar()
{
  foo<0>();
}