Jakub Jelinek wrote: > And that's the right thing to do.
I concur. But the exchange case remains open. > Please file an enhancement request in gcc bugzilla. Done, 48986. I have also noticed several other missing optimizations in this area, so I'm about to report them too. Best regards, Piotr Wyderski