https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88995

--- Comment #3 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
template <typename> struct dn 
{
  static void execute (long *ary)
  {
    constexpr int index = 0;

    [&] { auto &elt = ary [index]; };
  }
};

void foo ()
{
  dn<void>::execute;
}

Reply via email to