summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/auto11.C
blob: bd21daef0c658bde48960f654a3c8d25bb3de1d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/38256
// { dg-options "-std=c++0x" }

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

void foo()
{
  A<0>().operator auto();	// { dg-error "auto.*conversion" }
}