[Bug c++/66735] [C++14] lambda init-capture fails for const references

nathan at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 29 15:41:00 GMT 2016


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

Nathan Sidwell <nathan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |nathan at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |nathan at gcc dot gnu.org

--- Comment #4 from Nathan Sidwell <nathan at gcc dot gnu.org> ---

int const x = 5;

void Foo ()
{
  auto l = [&rx = x]() {};
}


More information about the Gcc-bugs mailing list