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++/79467] [7 Regression] incorrect static assertion in shared_ptr


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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Sat Feb 11 21:08:11 2017
New Revision: 245363

URL: https://gcc.gnu.org/viewcvs?rev=245363&root=gcc&view=rev
Log:
PR libstdc++/79467 use lvalues in is_callable check

        PR libstdc++/79467
        * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
        (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
        __is_callable check.
        * testsuite/20_util/shared_ptr/cons/79467.cc: New.

Added:
    trunk/libstdc++-v3/testsuite/20_util/shared_ptr/cons/79467.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/shared_ptr_base.h

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]