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++/72820] std::function can't store types with overloaded operator new


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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Sat Aug  6 10:21:07 2016
New Revision: 239191

URL: https://gcc.gnu.org/viewcvs?rev=239191&root=gcc&view=rev
Log:
Use ::new to avoid finding overloaded operator new

        PR libstdc++/72820
        * include/std/functional (_Function_base::_Base_manager::_M_clone):
        Qualify new operator.
        * testsuite/20_util/function/cons/72820.cc: New test.

Added:
    trunk/libstdc++-v3/testsuite/20_util/function/cons/72820.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/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]