2 // { dg-do compile { target c++14 } }
4 template <int i> struct A {
5 constexpr operator int () const { return i; }
7 template <int i> constexpr A<i> a = {};
9 template <typename F> void foo (F f) {
14 constexpr auto N = a<1>;
15 auto f = [&] (auto i) {
16 return static_cast<int>(N) == 1;
20 int main () { bar (0); }