public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/66559] New: Uses-allocator construction disregarded by list::emplace_back
@ 2015-06-16 16:24 potswa at mac dot com
2015-06-16 16:29 ` [Bug libstdc++/66559] " redi at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: potswa at mac dot com @ 2015-06-16 16:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66559
Bug ID: 66559
Summary: Uses-allocator construction disregarded by
list::emplace_back
Product: gcc
Version: 5.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: potswa at mac dot com
Target Milestone: ---
Created attachment 35790
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35790&action=edit
Test case
A std::set with a scoped_allocator_adapter emplaces nodes with uses-allocator
construction, but a std::list does not.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/66559] Uses-allocator construction disregarded by list::emplace_back
2015-06-16 16:24 [Bug libstdc++/66559] New: Uses-allocator construction disregarded by list::emplace_back potswa at mac dot com
@ 2015-06-16 16:29 ` redi at gcc dot gnu.org
2015-06-16 16:58 ` potswa at mac dot com
2015-06-16 17:21 ` redi at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2015-06-16 16:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66559
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
That's only the tip of the iceberg, std::list's allocator support is incomplete
*** This bug has been marked as a duplicate of bug 55409 ***
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/66559] Uses-allocator construction disregarded by list::emplace_back
2015-06-16 16:24 [Bug libstdc++/66559] New: Uses-allocator construction disregarded by list::emplace_back potswa at mac dot com
2015-06-16 16:29 ` [Bug libstdc++/66559] " redi at gcc dot gnu.org
@ 2015-06-16 16:58 ` potswa at mac dot com
2015-06-16 17:21 ` redi at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: potswa at mac dot com @ 2015-06-16 16:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66559
--- Comment #2 from David Krauss <potswa at mac dot com> ---
That bug only mentions missing allocator_traits support.
It looks like the problem here is that _List_node declares a member _Tp and
initializes it, whereas it should declare aligned storage for a _Tp and let the
container initialize it.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/66559] Uses-allocator construction disregarded by list::emplace_back
2015-06-16 16:24 [Bug libstdc++/66559] New: Uses-allocator construction disregarded by list::emplace_back potswa at mac dot com
2015-06-16 16:29 ` [Bug libstdc++/66559] " redi at gcc dot gnu.org
2015-06-16 16:58 ` potswa at mac dot com
@ 2015-06-16 17:21 ` redi at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2015-06-16 17:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66559
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Yes, I know what the bug is. If the container used
allocator_traits::construct() as it's supposed to then scoped_allocator_adaptor
would work.
The problem is that std::list is missing all C++11 allocator support. There's
no point having separate bugs for every little piece. This is a duplicate.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-16 17:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-16 16:24 [Bug libstdc++/66559] New: Uses-allocator construction disregarded by list::emplace_back potswa at mac dot com
2015-06-16 16:29 ` [Bug libstdc++/66559] " redi at gcc dot gnu.org
2015-06-16 16:58 ` potswa at mac dot com
2015-06-16 17:21 ` redi at gcc dot gnu.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).