[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
Mon Apr 24 11:40:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80504

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Mon Apr 24 11:40:07 2017
New Revision: 247094

URL: https://gcc.gnu.org/viewcvs?rev=247094&root=gcc&view=rev
Log:
PR libstdc++/80504 qualify calls to avoid ADL

        PR libstdc++/80504
        * include/bits/refwrap.h (ref, cref): Qualify calls.
        * testsuite/20_util/reference_wrapper/80504.cc: New test.

Added:
    trunk/libstdc++-v3/testsuite/20_util/reference_wrapper/80504.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/refwrap.h


More information about the Gcc-bugs mailing list