[Bug libstdc++/54351] ~unique_ptr() should not set __p to null

gromer at google dot com gcc-bugzilla@gcc.gnu.org
Wed Aug 22 19:11:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54351

--- Comment #5 from Geoff Romer <gromer at google dot com> 2012-08-22 19:11:17 UTC ---
Don't forget the array specialization.

Doesn't the first line of your new destructor shadow the __p member with a __p
local variable? Why is that line needed at all?



More information about the Gcc-bugs mailing list