This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/86295] Missing exception safety when inserting range into vector
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 28 Jun 2018 12:32:53 +0000
- Subject: [Bug libstdc++/86295] Missing exception safety when inserting range into vector
- Auto-submitted: auto-generated
- References: <bug-86295-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86295
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
P.S. the uninitialized_xxx algos have to work that way, because if an exception
occurs the caller has no way to know how many objects got created before the
exception, so the functions could never be used reliably if they didn't do
their own cleanup.