http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46987
--- Comment #4 from Martin Jambor <jamborm at gcc dot gnu.org> 2010-12-20 18:35:51 UTC --- OK, it's not later, the folding is called from within ccp which I guess is not happy that there is a new ssa name or some such nuisance. Which means that the best fix is probably to go ahead and commit http://gcc.gnu.org/ml/gcc-patches/2010-12/msg01217.html which I wanted to wait with but this is a good reason not to. I'll re-test and do it tomorrow.