public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/57263] New: std::set with user-defined allocator - compile error
@ 2013-05-13 12:06 mustrumr97 at gmail dot com
2013-05-13 12:10 ` [Bug libstdc++/57263] " mustrumr97 at gmail dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: mustrumr97 at gmail dot com @ 2013-05-13 12:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57263
Bug ID: 57263
Summary: std::set with user-defined allocator - compile error
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: mustrumr97 at gmail dot com
A user-defined allocator's pointer may not be convertible to and from regular
pointers. There is
std::allocator_traits<Allocator>::pointer
std::allocator_traits<Allocator>::pointer_to(std::allocator_traits<Allocator>::value_type&);
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/57263] std::set with user-defined allocator - compile error
2013-05-13 12:06 [Bug libstdc++/57263] New: std::set with user-defined allocator - compile error mustrumr97 at gmail dot com
@ 2013-05-13 12:10 ` mustrumr97 at gmail dot com
2013-05-13 12:27 ` redi at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mustrumr97 at gmail dot com @ 2013-05-13 12:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57263
--- Comment #1 from Hristo Venev <mustrumr97 at gmail dot com> ---
Created attachment 30104
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30104&action=edit
A nice and short testcase
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/57263] std::set with user-defined allocator - compile error
2013-05-13 12:06 [Bug libstdc++/57263] New: std::set with user-defined allocator - compile error mustrumr97 at gmail dot com
2013-05-13 12:10 ` [Bug libstdc++/57263] " mustrumr97 at gmail dot com
@ 2013-05-13 12:27 ` redi at gcc dot gnu.org
2013-05-13 12:31 ` redi at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2013-05-13 12:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57263
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2013-05-13
Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
std::set hasn't been updated to use the C++11 allocator requirements yet so
it's unsurprising this doesn't work.
It also fails with std::forward_list though, so there is a bug here.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/57263] std::set with user-defined allocator - compile error
2013-05-13 12:06 [Bug libstdc++/57263] New: std::set with user-defined allocator - compile error mustrumr97 at gmail dot com
2013-05-13 12:10 ` [Bug libstdc++/57263] " mustrumr97 at gmail dot com
2013-05-13 12:27 ` redi at gcc dot gnu.org
@ 2013-05-13 12:31 ` redi at gcc dot gnu.org
2013-05-13 20:15 ` redi at gcc dot gnu.org
2013-06-16 17:19 ` redi at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2013-05-13 12:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57263
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
N.B. the function that needs to be used is
std::pointer_traits<std::allocator_traits<Allocator>::pointer>::pointer_to
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/57263] std::set with user-defined allocator - compile error
2013-05-13 12:06 [Bug libstdc++/57263] New: std::set with user-defined allocator - compile error mustrumr97 at gmail dot com
` (2 preceding siblings ...)
2013-05-13 12:31 ` redi at gcc dot gnu.org
@ 2013-05-13 20:15 ` redi at gcc dot gnu.org
2013-06-16 17:19 ` redi at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2013-05-13 20:15 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57263
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Target Milestone|--- |4.8.2
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/57263] std::set with user-defined allocator - compile error
2013-05-13 12:06 [Bug libstdc++/57263] New: std::set with user-defined allocator - compile error mustrumr97 at gmail dot com
` (3 preceding siblings ...)
2013-05-13 20:15 ` redi at gcc dot gnu.org
@ 2013-06-16 17:19 ` redi at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2013-06-16 17:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57263
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Target Milestone|4.8.2 |4.9.0
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This has been fixed for the containers that support the allocator-aware
requirements: vector (which was already correct), forward_list and unordered_*
I'll make sure it works when std::list and other containers are updated to meet
the requirements.
PR 57272 exists to deal with another custom pointer issue.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-06-16 17:19 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-13 12:06 [Bug libstdc++/57263] New: std::set with user-defined allocator - compile error mustrumr97 at gmail dot com
2013-05-13 12:10 ` [Bug libstdc++/57263] " mustrumr97 at gmail dot com
2013-05-13 12:27 ` redi at gcc dot gnu.org
2013-05-13 12:31 ` redi at gcc dot gnu.org
2013-05-13 20:15 ` redi at gcc dot gnu.org
2013-06-16 17:19 ` 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).