[Bug c++/84604] False positive "may be used uninitialized in this function" due to variable initialization eliminated as dead code
glisse at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 27 23:41:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84604
--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Craig Schroeder from comment #0)
> this->~S();
> a=b+2;
What do you expect this to do? You destruct the object, then access its member
b...
More information about the Gcc-bugs
mailing list