[Issue 20706] `-preview=rvaluerefparam` does not work with copy constructor (and should do NRVO)
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Jan 28 12:28:44 UTC 2021
    
    
  
https://issues.dlang.org/show_bug.cgi?id=20706
RazvanN <razvan.nitu1305 at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |FIXED
--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
PR [1] has fixed this. On git HEAD the original example filed now compiles and
triggers the assert (i.e. the copy constructor is not called). Closing as
fixed.
[1] https://github.com/dlang/dmd/pull/12140
--
    
    
More information about the Digitalmars-d-bugs
mailing list