blob: 45a827553d067238cacca9e705f0cb48fc26bb44 [file] [log] [blame]
// PR c++/59114
// { dg-do compile { target c++11 } }
template<int> struct A
{
template<typename T> operator T();
};
void foo()
{
A<0>().operator auto(); // { dg-error "invalid use of .auto" }
}