[Issue 24773] Stable sort() invokes the destructor on uninitialized elements
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Fri Sep 20 11:38:37 UTC 2024
    
    
  
https://issues.dlang.org/show_bug.cgi?id=24773
Dlang Bot <dlang-bot at dlang.rocks> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/phobos pull request #9049 "Fix Bugzilla 24773: don't invoke destructors
on uninitialized elements in stable sort" was merged into master:
- cfd577b28dead189f08bdf5d2b6c94b3352d0af5 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/9049
--
    
    
More information about the Digitalmars-d-bugs
mailing list