[Bug libstdc++/82522] std::map::insert(value_type &&) not selected

2018-10-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82522

Jonathan Wakely  changed:

   What|Removed |Added

 CC||filip.gawin at zoho dot com

--- Comment #11 from Jonathan Wakely  ---
*** Bug 87658 has been marked as a duplicate of this bug. ***

[Bug libstdc++/82522] std::map::insert(value_type &&) not selected

2018-05-29 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82522

Jonathan Wakely  changed:

   What|Removed |Added

 CC||jose.dapena at lge dot com

--- Comment #10 from Jonathan Wakely  ---
*** Bug 85970 has been marked as a duplicate of this bug. ***

[Bug libstdc++/82522] std::map::insert(value_type &&) not selected

2017-12-27 Thread fdumont at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82522

--- Comment #9 from François Dumont  ---
Author: fdumont
Date: Thu Dec 28 05:37:54 2017
New Revision: 256018

URL: https://gcc.gnu.org/viewcvs?rev=256018=gcc=rev
Log:
2017-12-28  François Dumont  

Backport from mainline
2017-12-20  François Dumont  

PR libstdc++/82522
* include/debug/map.h (map::insert(value_type&&))
(map::insert(const_iterator, value_type&&)): Add overload for rvalues.
* include/debug/multimap.h (multimap::insert(value_type&&))
(multimap::insert(const_iterator, value_type&&)): Likewise.
* include/debug/unordered_map (unordered_map::insert(value_type&&))
(unordered_map::insert(const_iterator, value_type&&))
(unordered_multimap::insert(value_type&&))
(unordered_multimap::insert(const_iterator, value_type&&)): Likewise.
* testsuite/23_containers/map/modifiers/insert/dr2354.cc (test02): New.
* testsuite/23_containers/multimap/modifiers/insert/dr2354.cc (test02):
New.
* testsuite/23_containers/unordered_map/insert/dr2354.cc (test02): New.
* testsuite/23_containers/unordered_multimap/insert/dr2354.cc (test02):
New.

Modified:
branches/gcc-7-branch/libstdc++-v3/ChangeLog
branches/gcc-7-branch/libstdc++-v3/include/debug/map.h
branches/gcc-7-branch/libstdc++-v3/include/debug/multimap.h
branches/gcc-7-branch/libstdc++-v3/include/debug/unordered_map
   
branches/gcc-7-branch/libstdc++-v3/testsuite/23_containers/map/modifiers/insert/dr2354.cc
   
branches/gcc-7-branch/libstdc++-v3/testsuite/23_containers/multimap/modifiers/insert/dr2354.cc
   
branches/gcc-7-branch/libstdc++-v3/testsuite/23_containers/unordered_map/insert/dr2354.cc
   
branches/gcc-7-branch/libstdc++-v3/testsuite/23_containers/unordered_multimap/insert/dr2354.cc

[Bug libstdc++/82522] std::map::insert(value_type &&) not selected

2017-12-20 Thread fdumont at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82522

--- Comment #8 from François Dumont  ---
Author: fdumont
Date: Wed Dec 20 21:53:25 2017
New Revision: 255904

URL: https://gcc.gnu.org/viewcvs?rev=255904=gcc=rev
Log:
2017-12-20  François Dumont  

PR libstdc++/82522
* include/debug/map.h (map::insert(value_type&&))
(map::insert(const_iterator, value_type&&)): Add overload for rvalues.
* include/debug/multimap.h (multimap::insert(value_type&&))
(multimap::insert(const_iterator, value_type&&)): Likewise.
* include/debug/unordered_map (unordered_map::insert(value_type&&))
(unordered_map::insert(const_iterator, value_type&&))
(unordered_multimap::insert(value_type&&))
(unordered_multimap::insert(const_iterator, value_type&&)): Likewise.
* testsuite/23_containers/map/modifiers/insert/dr2354.cc (test02): New.
* testsuite/23_containers/multimap/modifiers/insert/dr2354.cc (test02):
New.
* testsuite/23_containers/unordered_map/insert/dr2354.cc (test02): New.
* testsuite/23_containers/unordered_multimap/insert/dr2354.cc (test02):
New.

Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/debug/map.h
trunk/libstdc++-v3/include/debug/multimap.h
trunk/libstdc++-v3/include/debug/unordered_map
trunk/libstdc++-v3/testsuite/23_containers/map/modifiers/insert/dr2354.cc
   
trunk/libstdc++-v3/testsuite/23_containers/multimap/modifiers/insert/dr2354.cc
trunk/libstdc++-v3/testsuite/23_containers/unordered_map/insert/dr2354.cc
   
trunk/libstdc++-v3/testsuite/23_containers/unordered_multimap/insert/dr2354.cc

[Bug libstdc++/82522] std::map::insert(value_type &&) not selected

2017-12-01 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82522

Jonathan Wakely  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Jonathan Wakely  ---
Fixed for 7.3

[Bug libstdc++/82522] std::map::insert(value_type &&) not selected

2017-12-01 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82522

--- Comment #6 from Jonathan Wakely  ---
Author: redi
Date: Fri Dec  1 17:50:59 2017
New Revision: 255330

URL: https://gcc.gnu.org/viewcvs?rev=255330=gcc=rev
Log:
PR libstdc++/82522 overload map insert functions for rvalues (LWG 2354)

Backport from mainline
2017-10-13  Jonathan Wakely  

PR libstdc++/82522
* doc/xml/manual/intro.xml: Document LWG 2354 changes.
* include/bits/stl_map.h (map::insert(value_type&&))
(map::insert(const_iterator, value_type&&)): Add overload for rvalues.
* include/bits/stl_multimap.h (multimap::insert(value_type&&))
(multimap::insert(const_iterator, value_type&&)): Likewise.
* include/bits/unordered_map.h (unordered_map::insert(value_type&&))
(unordered_map::insert(const_iterator, value_type&&))
(unordered_multimap::insert(value_type&&))
(unordered_multimap::insert(const_iterator, value_type&&)): Likewise.
* testsuite/23_containers/map/modifiers/insert/dr2354.cc: New test.
* testsuite/23_containers/multimap/modifiers/insert/dr2354.cc: New
test.
* testsuite/23_containers/unordered_map/insert/dr2354.cc: New test.
* testsuite/23_containers/unordered_multimap/insert/dr2354.cc: New
test.

Added:
   
branches/gcc-7-branch/libstdc++-v3/testsuite/23_containers/map/modifiers/insert/dr2354.cc
   
branches/gcc-7-branch/libstdc++-v3/testsuite/23_containers/multimap/modifiers/insert/dr2354.cc
   
branches/gcc-7-branch/libstdc++-v3/testsuite/23_containers/unordered_map/insert/dr2354.cc
   
branches/gcc-7-branch/libstdc++-v3/testsuite/23_containers/unordered_multimap/insert/dr2354.cc
Modified:
branches/gcc-7-branch/libstdc++-v3/ChangeLog
branches/gcc-7-branch/libstdc++-v3/doc/xml/manual/intro.xml
branches/gcc-7-branch/libstdc++-v3/include/bits/stl_map.h
branches/gcc-7-branch/libstdc++-v3/include/bits/stl_multimap.h
branches/gcc-7-branch/libstdc++-v3/include/bits/unordered_map.h

[Bug libstdc++/82522] std::map::insert(value_type &&) not selected

2017-10-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82522

Jonathan Wakely  changed:

   What|Removed |Added

   Target Milestone|8.0 |7.3

--- Comment #5 from Jonathan Wakely  ---
Fixed on trunk so far.

[Bug libstdc++/82522] std::map::insert(value_type &&) not selected

2017-10-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82522

--- Comment #4 from Jonathan Wakely  ---
Author: redi
Date: Fri Oct 13 12:39:32 2017
New Revision: 253725

URL: https://gcc.gnu.org/viewcvs?rev=253725=gcc=rev
Log:
PR libstdc++/82522 overload map insert functions for rvalues (LWG 2354)

PR libstdc++/82522
* doc/xml/manual/intro.xml: Document LWG 2354 changes.
* include/bits/stl_map.h (map::insert(value_type&&))
(map::insert(const_iterator, value_type&&)): Add overload for rvalues.
* include/bits/stl_multimap.h (multimap::insert(value_type&&))
(multimap::insert(const_iterator, value_type&&)): Likewise.
* include/bits/unordered_map.h (unordered_map::insert(value_type&&))
(unordered_map::insert(const_iterator, value_type&&))
(unordered_multimap::insert(value_type&&))
(unordered_multimap::insert(const_iterator, value_type&&)): Likewise.
* testsuite/23_containers/map/modifiers/insert/dr2354.cc: New test.
* testsuite/23_containers/multimap/modifiers/insert/dr2354.cc: New
test.
* testsuite/23_containers/unordered_map/insert/dr2354.cc: New test.
* testsuite/23_containers/unordered_multimap/insert/dr2354.cc: New
test.

Added:
trunk/libstdc++-v3/testsuite/23_containers/map/modifiers/insert/dr2354.cc
   
trunk/libstdc++-v3/testsuite/23_containers/multimap/modifiers/insert/dr2354.cc
trunk/libstdc++-v3/testsuite/23_containers/unordered_map/insert/dr2354.cc
   
trunk/libstdc++-v3/testsuite/23_containers/unordered_multimap/insert/dr2354.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/doc/xml/manual/intro.xml
trunk/libstdc++-v3/include/bits/stl_map.h
trunk/libstdc++-v3/include/bits/stl_multimap.h
trunk/libstdc++-v3/include/bits/unordered_map.h

[Bug libstdc++/82522] std::map::insert(value_type &&) not selected

2017-10-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82522

Jonathan Wakely  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |redi at gcc dot gnu.org
   Target Milestone|--- |8.0

[Bug libstdc++/82522] std::map::insert(value_type &&) not selected

2017-10-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82522

--- Comment #3 from Jonathan Wakely  ---
It was added by http://wg21.link/lwg2354 and we don't implement that yet.

[Bug libstdc++/82522] std::map::insert(value_type &&) not selected

2017-10-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82522

Jonathan Wakely  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-10-11
 Ever confirmed|0   |1

--- Comment #2 from Jonathan Wakely  ---
We don't have a map::insert(value_type&&) member, because there was no such
member in C++11 or C++14. It's been added for C++17 though.

[Bug libstdc++/82522] std::map::insert(value_type &&) not selected

2017-10-11 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82522

Paolo Carlini  changed:

   What|Removed |Added

  Component|c++ |libstdc++

--- Comment #1 from Paolo Carlini  ---
If anything, first blush seems a library issue to me.