This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/80504] missing qualification causes ADL to be used in std::ref / std::cref
- 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: Thu, 18 May 2017 14:36:29 +0000
- Subject: [Bug libstdc++/80504] missing qualification causes ADL to be used in std::ref / std::cref
- Auto-submitted: auto-generated
- References: <bug-80504-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80504
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Thu May 18 14:35:54 2017
New Revision: 248217
URL: https://gcc.gnu.org/viewcvs?rev=248217&root=gcc&view=rev
Log:
PR libstdc++/80504 qualify calls to avoid ADL
Backport from mainline
2017-04-24 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/80504
* include/std/functional (ref, cref): Qualify calls.
* testsuite/20_util/reference_wrapper/80504.cc: New test.
Added:
branches/gcc-6-branch/libstdc++-v3/testsuite/20_util/reference_wrapper/80504.cc
Modified:
branches/gcc-6-branch/libstdc++-v3/ChangeLog
branches/gcc-6-branch/libstdc++-v3/include/std/functional