[Bug c++/12333] [DR 272] Explicit call to MyClass::~MyClass() not allowed

hiraditya at msn dot com gcc-bugzilla@gcc.gnu.org
Tue Feb 20 20:14:00 GMT 2018


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

--- Comment #17 from AK <hiraditya at msn dot com> ---
The following workarounds do not emit compiler errors, although I'm not sure if
second option is a correct workaround.

1. this->~X();
2. X::~X(0);

FYI,
ICC 18 also has the same bug. The first workaround works for ICC but not the
second one.


More information about the Gcc-bugs mailing list