This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/79467] [7 Regression] incorrect static assertion in shared_ptr
- 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, 11 Feb 2017 21:08:42 +0000
- Subject: [Bug libstdc++/79467] [7 Regression] incorrect static assertion in shared_ptr
- Auto-submitted: auto-generated
- References: <bug-79467-4@http.gcc.gnu.org/bugzilla/>
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