The following program segfaults when compiled with "-O1 -ftree-vectorize -msse2". Compiler is gfortran trunk revision 143693 (4.4.0 20090127). Also fails with higher levels of optimization but requires both -ftree-vectorize and -msse2. program common real (kind=8) b(5) common /com1/b b = 100 end The case is reduced from gfortran.fortran-torture/execute/common.f90
You can workaround this PE/COFF problem with -fno-common. *** This bug has been marked as a duplicate of 37216 ***