https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62010
--- Comment #2 from Alexander Grund <alexander.grund at mailbox dot tu-dresden.de> --- Related to this: In some cases OpenMP simd crashes while that crash is fixed by removing an unrelated piece of code. See Testcase 2. Run with: gfortran-4.9 gfortranBug.f -cpp && ./a.out && gfortran-4.9 gfortranBug.f -cpp -fopenmp && ./a.out Output: size 12 x 10 x 5 -29032800293.326649 size 12 x 10 x 5 3554.0040000000376 Expected: Same output And to crash run with: gfortran-4.9 gfortranBug.f -cpp -D CRASH && ./a.out && gfortran-4.9 gfortranBug.f -cpp -D CRASH -fopenmp && ./a.out Output: size 12 x 10 x 5 3840.3482323232652 size 12 x 10 x 5 Program received signal SIGSEGV: Segmentation fault - invalid memory reference.