http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59611
Marc Glisse <glisse at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Status|UNCONFIRMED |NEW Last reconfirmed| |2013-12-27 Component|libstdc++ |tree-optimization Ever confirmed|0 |1 --- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> --- The call to memcpy is folded rather early to: MEM[(char * {ref-all})p_2(D)] = MEM[(char * {ref-all})&a]; and then we don't touch it anymore, maybe because we don't go through an SSA_NAME. We thus miss that the RHS is a constant.