[Bug libstdc++/16054] basic_string incorrectly handles allocator arguments

pcarlini at suse dot de gcc-bugzilla@gcc.gnu.org
Fri Jun 18 12:41:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list