[Issue 24773] Stable sort() invokes the destructor on uninitialized elements
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 28 13:22:17 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24773
--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/phobos pull request #9076 "[stable] Cherry-pick 2 master fixes" was
merged into stable:
- 9e78de4d86ec1b61cc39ed90083373bfa111ccdd by Sönke Ludwig:
Fix Bugzilla 24773: Don't invoke destructors on uninitialized elements in
stable sort
Uses a regular initialized temporary array when sorting elements with an
elaborate assignment to avoid undefined behavior when destructors, postblits or
copy constructors are invoked during the array assignment.
https://github.com/dlang/phobos/pull/9076
--
More information about the Digitalmars-d-bugs
mailing list