[Bug libstdc++/69293] scoped_allocator_adaptor::construct calls wrong function

2016-08-06 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69293 --- Comment #9 from Jonathan Wakely --- Oops I did it again.

[Bug libstdc++/69293] scoped_allocator_adaptor::construct calls wrong function

2016-08-06 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69293 --- Comment #8 from Jonathan Wakely --- Author: redi Date: Sat Aug 6 12:21:42 2016 New Revision: 239205 URL: https://gcc.gnu.org/viewcvs?rev=239205&root=gcc&view=rev Log: Fix construction of std::function from null pointer-to-member PR

[Bug libstdc++/69293] scoped_allocator_adaptor::construct calls wrong function

2016-01-18 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69293 --- Comment #7 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #6) > Author: redi > Date: Mon Jan 18 11:43:37 2016 > New Revision: 232504 > > URL: https://gcc.gnu.org/viewcvs?rev=232504&root=gcc&view=rev > Log: > Fix construct

[Bug libstdc++/69293] scoped_allocator_adaptor::construct calls wrong function

2016-01-18 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69293 --- Comment #6 from Jonathan Wakely --- Author: redi Date: Mon Jan 18 11:43:37 2016 New Revision: 232504 URL: https://gcc.gnu.org/viewcvs?rev=232504&root=gcc&view=rev Log: Fix construction of std::function from null pointer-to-member PR

[Bug libstdc++/69293] scoped_allocator_adaptor::construct calls wrong function

2016-01-16 Thread forever14 at bk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69293 --- Comment #5 from ForEveR --- Nice, thanks for fix and for defect report.

[Bug libstdc++/69293] scoped_allocator_adaptor::construct calls wrong function

2016-01-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69293 Jonathan Wakely changed: What|Removed |Added Keywords||accepts-invalid Status|ASS

[Bug libstdc++/69293] scoped_allocator_adaptor::construct calls wrong function

2016-01-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69293 --- Comment #3 from Jonathan Wakely --- Author: redi Date: Fri Jan 15 23:12:13 2016 New Revision: 232457 URL: https://gcc.gnu.org/viewcvs?rev=232457&root=gcc&view=rev Log: Use static assertion for uses-allocator construction PR libstdc+

[Bug libstdc++/69293] scoped_allocator_adaptor::construct calls wrong function

2016-01-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69293 --- Comment #2 from Jonathan Wakely --- (In reply to ForEveR from comment #0) > In code, is_constructible::value is false, > since use_arg receives Alloc by reference, but there is no test for this > case in libstdc++. There doesn't need to be a

[Bug libstdc++/69293] scoped_allocator_adaptor::construct calls wrong function

2016-01-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69293 --- Comment #1 from Jonathan Wakely --- Actually I think this is a defect in the standard, it is inconsistent to check is_constructible but then pass inner_allocator_type&. Consider this type: struct use_arg { using allocator_type = std::allo

[Bug libstdc++/69293] scoped_allocator_adaptor::construct calls wrong function

2016-01-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69293 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|