http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57296
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- Works for me on x86_64-apple-darwin10 (OSX 10.6.8) for both 4.8.0 and trunk. Where did you get your gfortran? Does -fno-aggressive-loop-optimizations help?