https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77987
--- Comment #4 from Jonathan Wakely ---
Author: redi
Date: Mon Oct 17 18:21:26 2016
New Revision: 241276
URL: https://gcc.gnu.org/viewcvs?rev=241276=gcc=rev
Log:
PR77987 Fix unique_ptr::reset(U) for T != U
PR libstdc++/77987
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77987
--- Comment #3 from Jonathan Wakely ---
Fixed on trunk so far.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77987
--- Comment #2 from Jonathan Wakely ---
Author: redi
Date: Mon Oct 17 12:00:44 2016
New Revision: 241235
URL: https://gcc.gnu.org/viewcvs?rev=241235=gcc=rev
Log:
PR77987 Fix unique_ptr::reset(U) for T != U
PR libstdc++/77987
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77987
--- Comment #1 from Jonathan Wakely ---
Seems simple enough to fix:
@@ -608,8 +608,9 @@
>
>>
void
- reset(_Up __p) noexcept
+ reset(_Up __ptr) noexcept
{
+ pointer __p = __ptr;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77987
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed|