This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/19495] basic_string::_M_rep() can produce an unnaturally aligned pointer to _Rep
- From: "ncm at cantrip dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Apr 2005 13:24:03 -0000
- Subject: [Bug libstdc++/19495] basic_string::_M_rep() can produce an unnaturally aligned pointer to _Rep
- References: <20050118051448.19495.bje@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ncm at cantrip dot org 2005-04-01 13:24 -------
Subject: Re: basic_string::_M_rep() can produce an unnaturally aligned pointer to _Rep
On Fri, Apr 01, 2005 at 11:42:27AM -0000, pcarlini at suse dot de wrote:
> What |Removed |Added
> ----------------------------------------------------------------------------
> Severity|normal |enhancement
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19495
I don't see how this (or 8670, or the other one) is an enhancement
request. Users are absolutely allowed to make allocators that
enforce only the alignment of the type they are instantiated on,
and string is certainly using the wrong kind of allocator.
It's a fairly minor bug, but seems to me clearly a bug.
N
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19495