------- Comment #6 from rguenth at gcc dot gnu dot org  2010-08-07 20:36 -------
The argument should have prevented return slot optimization here.

;; x.1 = std::operator/<double> (&D.24646, &x.1); [return slot optimization]

Isn't this fixed on trunk since

2010-07-26  Richard Guenther  <rguent...@suse.de>

        PR tree-optimization/43784
        * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
        if the destination is used by the call.

?  Well, I'll have a look.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44632

Reply via email to