This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/30578] New: array_allocator can't be safely copied
- From: "skottmckay at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jan 2007 19:59:47 -0000
- Subject: [Bug libstdc++/30578] New: array_allocator can't be safely copied
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The current implementation of the array_allocator allows the allocator to be
copy constructed. This leads to trouble due to _M_used, which is not
synchronized between the copies. Each copy will start allocating from the same
point in the underlying array.
--
Summary: array_allocator can't be safely copied
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: skottmckay at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30578