Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/nontype1.C

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