1 2 3 4 5 6 7 8 9 10 11 12
// PR c++/38256 // { dg-do compile { target c++11 } } template<int> struct A { template<typename T> operator T(); }; void foo() { A<0>().operator auto(); // { dg-error "auto" } }