[Bug c++/69223] ICE with polymorphic lambda

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 13 19:22:00 GMT 2016


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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Slightly reduced:

#include <array>
#include <vector>

int main() {
  std::vector<std::array<int, 20>> out;

  auto saveChan = [&](auto && f) {
        f({});
  };
  saveChan([](decltype(out)::value_type const & i){ return i;});
}


More information about the Gcc-bugs mailing list