Created on 2016-04-12.00:00:00 last changed 16 months ago
Additional notes (July, 2023)
This issue is a subset of issue 2757.
Notes from the December, 2016 teleconference:
The consensus view was that this should be undefined behavior.
What happens if the storage for an object is deallocated in its period of destruction? Consider:
struct Base { virtual ~Base() { ::operator delete(this); } void operator delete(void*) {} }; struct Derived : Base {}; int main() { delete new Derived; }
This ought to be undefined behavior, but the standard is silent on the matter.
History | |||
---|---|---|---|
Date | User | Action | Args |
2023-07-05 14:35:51 | admin | set | messages: + msg7353 |
2017-02-06 00:00:00 | admin | set | messages: + msg5767 |
2016-04-12 00:00:00 | admin | create |