[Bug libstdc++/80504] missing qualification causes ADL to be used in std::ref / std::cref

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu May 18 14:40:00 GMT 2017


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


More information about the Gcc-bugs mailing list