This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/78991] std::sort and std::unique can not use std::function with clang++ -std=c++14
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 06 Jan 2017 13:20:36 +0000
- Subject: [Bug libstdc++/78991] std::sort and std::unique can not use std::function with clang++ -std=c++14
- Auto-submitted: auto-generated
- References: <bug-78991-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78991
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Fri Jan 6 13:20:05 2017
New Revision: 244152
URL: https://gcc.gnu.org/viewcvs?rev=244152&root=gcc&view=rev
Log:
PR78991 make __gnu_cxx::__ops constructors explicit
PR libstdc++/78991
* include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
(_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
(_Iter_comp_to_iter, _Iter_negate): Make constructors explicit.
* testsuite/25_algorithms/sort/78991.cc: New test.
Added:
branches/gcc-6-branch/libstdc++-v3/testsuite/25_algorithms/sort/78991.cc
Modified:
branches/gcc-6-branch/libstdc++-v3/ChangeLog
branches/gcc-6-branch/libstdc++-v3/include/bits/predefined_ops.h