// { dg-do compile { target c++11 } } struct L { constexpr operator int() const { return 0; } }; constexpr L LVar{}; template int *f() { return 0; } template char *f(); auto r = f(); // { dg-error "ambiguous" }