[Bug c++/84604] False positive "may be used uninitialized in this function" due to variable initialization eliminated as dead code
cas43 at cs dot stanford.edu
gcc-bugzilla@gcc.gnu.org
Wed Feb 28 00:03:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84604
--- Comment #2 from Craig Schroeder <cas43 at cs dot stanford.edu> ---
I was under the impression I was allowed to call the destructor just like any
other function. On further investigation, this is undefined behavior, so this
bug report is invalid.
More information about the Gcc-bugs
mailing list