PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / nontype1.C
blob29dff3639745940efe79f01b92a592ed6df13519
1 // { dg-do compile { target c++11 } }
3 struct L { constexpr operator int() const { return 0; } };
4 constexpr L LVar{};
6 template<const L&> int *f() { return 0; }
7 template<int> char *f();
9 auto r = f<LVar>();             // { dg-error "ambiguous" }