https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68933
--- Comment #2 from Zaak <zbeekman at gmail dot com> --- I have confirmed this is a problem on OS X as well, although perhaps the diagnostics are slightly different? $ /usr/local/bin/gfortran -I/usr/local/homebrew/Cellar/mpich/3.2/include -fcoarray=lib -fprofile-arcs -ftest-coverage coarray_distributed_transpose.F90 -c -v Using built-in specs. COLLECT_GCC=/usr/local/bin/gfortran Target: x86_64-apple-darwin14.5.0 Configured with: ../configure --build=x86_64-apple-darwin14.5.0 --prefix=/usr/local/homebrew/Cellar/gcc/5.3.0 --libdir=/usr/local/homebrew/Cellar/gcc/5.3.0/lib/gcc/5 --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-5 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl --with-system-zlib --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --with-build-config=bootstrap-debug --disable-werror --with-pkgversion='Homebrew gcc 5.3.0' --with-bugurl=https://github.com/Homebrew/homebrew/issues --enable-plugin --disable-nls --enable-multilib Thread model: posix gcc version 5.3.0 (Homebrew gcc 5.3.0) COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.10.5' '-I' '/usr/local/homebrew/Cellar/mpich/3.2/include' '-fcoarray=lib' '-fprofile-arcs' '-ftest-coverage' '-c' '-v' '-mtune=core2' /usr/local/homebrew/Cellar/gcc/5.3.0/libexec/gcc/x86_64-apple-darwin14.5.0/5.3.0/f951 coarray_distributed_transpose.F90 -cpp=/var/folders/4t/my3vyzsx7pg80tc_cxhyfc7h0000gp/T//ccN09K7q.f90 -quiet -v -I /usr/local/homebrew/Cellar/mpich/3.2/include -D__DYNAMIC__ coarray_distributed_transpose.F90 -fPIC -quiet -dumpbase coarray_distributed_transpose.F90 -mmacosx-version-min=10.10.5 -mtune=core2 -auxbase coarray_distributed_transpose -version -fcoarray=lib -fprofile-arcs -ftest-coverage -fintrinsic-modules-path /usr/local/homebrew/Cellar/gcc/5.3.0/lib/gcc/5/gcc/x86_64-apple-darwin14.5.0/5.3.0/finclude -o /var/folders/4t/my3vyzsx7pg80tc_cxhyfc7h0000gp/T//ccK2CN3d.s GNU Fortran (Homebrew gcc 5.3.0) version 5.3.0 (x86_64-apple-darwin14.5.0) compiled by GNU C version 5.3.0, GMP version 6.1.0, MPFR version 3.1.3-p2, MPC version 1.0.3 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/usr/local/homebrew/Cellar/gcc/5.3.0/lib/gcc/5/gcc/x86_64-apple-darwin14.5.0/5.3.0/../../../../../../x86_64-apple-darwin14.5.0/include" #include "..." search starts here: #include <...> search starts here: /usr/local/homebrew/Cellar/mpich/3.2/include /usr/local/homebrew/Cellar/gcc/5.3.0/lib/gcc/5/gcc/x86_64-apple-darwin14.5.0/5.3.0/finclude /usr/local/homebrew/Cellar/gcc/5.3.0/lib/gcc/5/gcc/x86_64-apple-darwin14.5.0/5.3.0/include /usr/local/include /usr/local/homebrew/Cellar/gcc/5.3.0/include /usr/local/homebrew/Cellar/gcc/5.3.0/lib/gcc/5/gcc/x86_64-apple-darwin14.5.0/5.3.0/include-fixed /usr/include End of search list. GNU Fortran2008 (Homebrew gcc 5.3.0) version 5.3.0 (x86_64-apple-darwin14.5.0) compiled by GNU C version 5.3.0, GMP version 6.1.0, MPFR version 3.1.3-p2, MPC version 1.0.3 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 coarray_distributed_transpose.F90:111:0: use run_size ^ internal compiler error: Segmentation fault: 11 coarray_distributed_transpose.F90:111:0: internal compiler error: Abort trap: 6 gfortran: internal compiler error: Abort trap: 6 (program f951) Please submit a full bug report, with preprocessed source if appropriate. See <https://github.com/Homebrew/homebrew/issues> for instructions.