This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/72820] std::function can't store types with overloaded operator new
- 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: Sat, 06 Aug 2016 10:21:38 +0000
- Subject: [Bug libstdc++/72820] std::function can't store types with overloaded operator new
- Auto-submitted: auto-generated
- References: <bug-72820-4@http.gcc.gnu.org/bugzilla/>
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