https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78134
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Tue Feb 14 21:17:18 2017 New Revision: 245455 URL: https://gcc.gnu.org/viewcvs?rev=245455&root=gcc&view=rev Log: PR78134 fix return types of heterogeneous lookup functions Backport from mainline 2017-01-11 Jonathan Wakely <jwak...@redhat.com> PR libstdc++/78134 * include/bits/stl_map.h (map::lower_bound, map::upper_bound) (map::equal_range): Fix return type of heterogeneous overloads. * include/bits/stl_multimap.h (multimap::lower_bound) (multimap::upper_bound, multimap::equal_range): Likewise. * include/bits/stl_multiset.h (multiset::lower_bound) (multiset::upper_bound, multiset::equal_range): Likewise. * include/bits/stl_set.h (set::lower_bound, set::upper_bound) (set::equal_range): Likewise. * testsuite/23_containers/map/operations/2.cc: Check return types. * testsuite/23_containers/multimap/operations/2.cc: Likewise. * testsuite/23_containers/multiset/operations/2.cc: Likewise. * testsuite/23_containers/set/operations/2.cc: Likewise. Modified: branches/gcc-5-branch/libstdc++-v3/ChangeLog branches/gcc-5-branch/libstdc++-v3/include/bits/stl_map.h branches/gcc-5-branch/libstdc++-v3/include/bits/stl_multimap.h branches/gcc-5-branch/libstdc++-v3/include/bits/stl_multiset.h branches/gcc-5-branch/libstdc++-v3/include/bits/stl_set.h branches/gcc-5-branch/libstdc++-v3/testsuite/23_containers/map/operations/2.cc branches/gcc-5-branch/libstdc++-v3/testsuite/23_containers/multimap/operations/2.cc branches/gcc-5-branch/libstdc++-v3/testsuite/23_containers/multiset/operations/2.cc branches/gcc-5-branch/libstdc++-v3/testsuite/23_containers/set/operations/2.cc