This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]