public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/21609] New: array_allocator vs rebind & copy-constructor
@ 2005-05-16 16:24 pcarlini at suse dot de
  2005-05-16 17:51 ` [Bug libstdc++/21609] array_allocator vs rebind & templated constructor pcarlini at suse dot de
  2005-05-16 18:24 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 8+ messages in thread
From: pcarlini at suse dot de @ 2005-05-16 16:24 UTC (permalink / raw)
  To: gcc-bugs

There is an issue with array_allocator, which clearly surfaced while working
on libstdc++/19495. In a nutshell, the templated copy-constructor doesn't seem to
play well with rebinds: after a rebind, the first copy-constructor call leads
to _M_array = 0 and no memory can be possibly returned by allocate. This makes
sense, because the underlying array probably is inappropriate for a type !=
the orginal one (because of alignment requirements, at least), but leads to an
allocator much less usable in general applications.

-- 
           Summary: array_allocator vs rebind & copy-constructor
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pcarlini at suse dot de
                CC: bkoz at redhat dot com,gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21609


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-01-29 20:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-21609-4@http.gcc.gnu.org/bugzilla/>
2012-01-11 14:07 ` [Bug libstdc++/21609] array_allocator vs rebind & templated constructor rguenth at gcc dot gnu.org
2014-01-29 16:23 ` redi at gcc dot gnu.org
2014-01-29 16:56 ` redi at gcc dot gnu.org
2014-01-29 19:07 ` redi at gcc dot gnu.org
2014-01-29 20:44 ` redi at gcc dot gnu.org
2014-01-29 20:45 ` redi at gcc dot gnu.org
2005-05-16 16:24 [Bug libstdc++/21609] New: array_allocator vs rebind & copy-constructor pcarlini at suse dot de
2005-05-16 17:51 ` [Bug libstdc++/21609] array_allocator vs rebind & templated constructor pcarlini at suse dot de
2005-05-16 18:24 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).