Bug 32017 - consistent exception-safety container testing
Summary: consistent exception-safety container testing
Status: RESOLVED DUPLICATE of bug 25288
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 4.1.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-21 05:49 UTC by Dave Abrahams
Modified: 2021-12-20 08:08 UTC (History)
4 users (show)

See Also:
Host: i486-linux-gnu
Target: i486-linux-gnu
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Abrahams 2007-05-21 05:49:45 UTC
list<T>::insert(pos, start, finish) doesn't provide the strong guarantee as required by 23.2.3.3 list modifiers

See http://groups.google.com/group/comp.lang.c++.moderated/browse_frm/thread/b215edcb44b19bb9/c875353acb4da29e

It's almost a sure bet that libstdc++ contains other exception-safety bugs.

I suggest you adapt and adopt the test mentioned here:
http://groups.google.com/group/comp.lang.c++.moderated/tree/browse_frm/thread/1ff1165766b913f5/92dcc2c639b9ce39
and here:
http://groups.google.com/group/comp.lang.c++.moderated/browse_frm/thread/5272e2a3501ad534/3c80688532fcf240
Comment 1 Paolo Carlini 2007-05-21 09:22:31 UTC
Ok, thanks, but this bug is already fixed.

*** This bug has been marked as a duplicate of 25288 ***
Comment 2 Dave Abrahams 2007-05-21 14:25:42 UTC
I won't push the subject any further, but again, if you don't adopt the tests mentioned in the threads cited above, you will almost certainly have further exception safety bugs lurking.   Howard Hinnant can verify that this test works as he used it to validate the MSL. 
Comment 3 Paolo Carlini 2007-05-21 15:00:46 UTC
This specific bug is already fixed and must be marked as duplicate. Then we have 21772, more general. We know what we are doing, thanks.

*** This bug has been marked as a duplicate of 25288 ***
Comment 4 Benjamin Kosnik 2007-05-21 15:57:28 UTC
Dave, just to clarify, this is bug 21772. We're working on it.

;)

-benjamin