http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50713
vincenzo Innocente <vincenzo.innocente at cern dot ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|tree-optimization |middle-end Version|4.7.0 |4.8.0 --- Comment #7 from vincenzo Innocente <vincenzo.innocente at cern dot ch> 2012-10-26 06:44:19 UTC --- I checked with other compilers. clang for instance produce optimized code. I hope gcc can get it right in 4.8 (although I would really prefer a back port to 4.7)