This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/16054] basic_string incorrectly handles allocator arguments
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jun 2004 12:41:40 -0000
- Subject: [Bug libstdc++/16054] basic_string incorrectly handles allocator arguments
- References: <20040618112601.16054.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pcarlini at suse dot de 2004-06-18 12:41 -------
>> However, the constructor:
>> basic_string(const basic_string& __str);
>> has no allocator
>
> this is clearly mandated by the Standard (21.3.1).
Forgot to add: 21.3.1, p5 says: "In the first form, the Allocator value used is
copied from str.get_allocator()". Actually we had a bug in the implementation
of this constructor (libstd++/14245), already fixed for 3.4.1.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16054