[Bug c++/52924] [4.7/4.8 Regression] Using an std::function object as deleter of shared_ptr in C++0x mode does not compile
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Apr 11 23:14:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52924
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-04-11 23:13:49 UTC ---
Author: redi
Date: Wed Apr 11 23:13:44 2012
New Revision: 186367
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186367
Log:
PR libstdc++/52924
* include/bits/shared_ptr_base.h (_Sp_counted_deleter): Add
user-defined destructor.
(_Sp_counted_inplace): Likewise.
* testsuite/20_util/shared_ptr/cons/52924.cc: New.
* testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error
line numbers.
Added:
branches/gcc-4_7-branch/libstdc++-v3/testsuite/20_util/shared_ptr/cons/52924.cc
- copied, changed from r186360,
branches/gcc-4_7-branch/libstdc++-v3/testsuite/20_util/shared_ptr/cons/43820_neg.cc
Modified:
branches/gcc-4_7-branch/libstdc++-v3/ChangeLog
branches/gcc-4_7-branch/libstdc++-v3/include/bits/shared_ptr_base.h
branches/gcc-4_7-branch/libstdc++-v3/testsuite/20_util/shared_ptr/cons/43820_neg.cc
More information about the Gcc-bugs
mailing list