This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/57779] vector insert fails to diagnose iterators pointing into *this in debug mode
- From: "fdumont at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 04 Jul 2013 20:41:00 +0000
- Subject: [Bug libstdc++/57779] vector insert fails to diagnose iterators pointing into *this in debug mode
- Auto-submitted: auto-generated
- References: <bug-57779-4 at http dot gcc dot gnu dot org/bugzilla/>
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.