[Bug libstdc++/58839] [4.8/4.9 Regression] dereferencing void* in shared_ptr(unique_ptr&& u) constructor
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Oct 29 21:58:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58839
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Oct 29 21:58:27 2013
New Revision: 204186
URL: http://gcc.gnu.org/viewcvs?rev=204186&root=gcc&view=rev
Log:
PR libstdc++/58839
* include/bits/shared_ptr_base.h
(__shared_ptr<T>::__shared_ptr(unique_ptr<U,D>&&)): Do not dereference
pointer.
* testsuite/20_util/shared_ptr/cons/58839.cc: New.
Added:
branches/gcc-4_8-branch/libstdc++-v3/testsuite/20_util/shared_ptr/cons/58839.cc
Modified:
branches/gcc-4_8-branch/libstdc++-v3/ChangeLog
branches/gcc-4_8-branch/libstdc++-v3/include/bits/shared_ptr_base.h
More information about the Gcc-bugs
mailing list