[Issue 17448] Move semantics cause memory corruption and cryptic bugs
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Tue Jun  6 07:15:58 PDT 2017
    
    
  
https://issues.dlang.org/show_bug.cgi?id=17448
--- Comment #19 from anonymous4 <dfj1esp02 at sneakemail.com> ---
(In reply to Andrei Alexandrescu from comment #14)
> LDC for example is very adept at
> "destructuring", i.e. exploding a struct into registers and "assembling" it
> back if necessary. Carrying the notion of "immovable structs" through all
> layers would be a major effort for all implementations.
I think it's transparent to LDC: optimizers are conservative, and such
explosion is possible if the optimizer understands the addressing pattern of
the struct content.
--
    
    
More information about the Digitalmars-d-bugs
mailing list