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

Alexander Klimov <alserkli at inbox dot ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[C++0x] range-based for     |[C++0x] range-based for
                   |loop inside lambda crashes  |loop does not destruct
                   |if _GLIBCXX_DEBUG is        |iterators
                   |defined                     |

--- Comment #3 from Alexander Klimov <alserkli at inbox dot ru> 2010-10-19 
18:24:27 UTC ---
Apparently it has nothing to do with _GLIBCXX_DEBUG or lambda. Turns out
range-based for loop does not call destructor for iterator and thus
v._M_iterators is not null. 

See attachment for a direct testcase.

Reply via email to