[Bug c++/65201] range-for range-init containing variable named like for-range-declaration iterates over uninitialized for-range-declaration

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 25 10:39:00 GMT 2015


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-02-25
     Ever confirmed|0                           |1

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

terminate called after throwing an instance of 'std::logic_error' what():
basic_string::_M_construct null not valid



More information about the Gcc-bugs mailing list