[Bug tree-optimization/70868] Assigning constructed temporary of class with nontrivial constructor uses unnecessary temporary
glisse at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jul 10 07:18:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70868
Marc Glisse <glisse at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |tree-optimization
--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
Comparing the optimized dumps at -O3:
foo1 = {};
vs
D.2289 = {};
foo1 = D.2289;
D.2289 ={v} {CLOBBER};
Should be doable...
More information about the Gcc-bugs
mailing list