http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46488
--- Comment #11 from Lance Kinley <lk0946 at att dot com> 2010-11-26 22:10:16 UTC --- Works with -O and -O2 on the 4.5 snapshot and the 4.6 snapshot. -O3 is the culprit. I have not tested with any other versions other than 4.5.1 and the two snapshots mentioned.