This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/57779] vector insert fails to diagnose iterators pointing into *this in debug mode


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

FranÃois Dumont <fdumont at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2013-07-04
                 CC|                            |fdumont at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |fdumont at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from FranÃois Dumont <fdumont at gcc dot gnu.org> ---
Sure I can take care of it.

The Standard is saying that for any sequence type this insert operation shall
not take a range pointing back to the sequence. I plan to rather check the
libstdc++ limits as most of its containers allow this kind of insertion. For
the moment I think that only std::vector and std::deque are in this situation,
maybe std::string, I will double check.

The proposed use case is indeed a bit more complicated, I will see if I can
cover it too.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]