[Bug c++/49554] [4.7 Regression] [C++0x] lambda capture causes "cannot call member function ... without object"

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 27 23:44:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49554

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-06-27 23:44:05 UTC ---
No error for this version:

    Base_iterator b;
    b = Base::begin();

    [b](int i) { return i; };



More information about the Gcc-bugs mailing list