[Bug c++/92467] gcc miscompiles ternary expression with omitted first operand ?: involving C++ prvalues

st at quanttec dot com gcc-bugzilla@gcc.gnu.org
Mon Nov 11 22:04:00 GMT 2019


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

--- Comment #3 from Stephan Tolksdorf <st at quanttec dot com> ---
Calling release on tmp should set the internal pointer member to null so that
the destructor won't call the deleter on the (void*)1 ptr.


More information about the Gcc-bugs mailing list