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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Fri Jan 20 00:07:14 2017
New Revision: 244668

URL: https://gcc.gnu.org/viewcvs?rev=244668&root=gcc&view=rev
Log:
PR79156 fix std::__enable_shared_from_this extension

        PR libstdc++/79156
        * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
        Fix return type.
        (__enable_shared_from_this): Declare __shared_ptr as a friend.
        * testsuite/ext/shared_ptr/1.cc: New test.

Added:
    trunk/libstdc++-v3/testsuite/ext/shared_ptr/
    trunk/libstdc++-v3/testsuite/ext/shared_ptr/1.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/shared_ptr_base.h

Reply via email to