1 // { dg-do compile { target c++11 } }
2 
3 struct L { constexpr operator int() const { return 0; } };
4 constexpr L LVar{};
5 
f()6 template<const L&> int *f() { return 0; }
7 template<int> char *f();
8 
9 auto r = f<LVar>();		// { dg-error "ambiguous" }
10