This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/26875] Array allocator use count is shared between array_allocator instances
- From: "bart dot vanassche at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Mar 2006 10:53:57 -0000
- Subject: [Bug libstdc++/26875] Array allocator use count is shared between array_allocator instances
- References: <bug-26875-4415@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from bart dot vanassche at gmail dot com 2006-03-27 10:53 -------
(In reply to comment #3)
> Confirmed. Though it looks like this is a fundamental problem of the interface
> provided. Should be documented so though. Also destroying an array allocator
> instance does not reset the __array_used value, so only ever one allocator
> instance per Type/Storage can be used even sequentially after each other.
I don't think it's an interface problem -- IMHO changing __array_used into a
(non-static) member of class array_allocator<> would solve this issue.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26875