https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84604
Richard Biener changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84604
--- Comment #2 from Craig Schroeder ---
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.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84604
--- Comment #1 from Marc Glisse ---
(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...