https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65996
Bug ID: 65996 Summary: [5.1 Regression] gfortran ICE with -dH Product: gcc Version: 5.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: Melven.Roehrig-Zoellner at DLR dot de Target Milestone: --- Created attachment 35450 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35450&action=edit source file to reproduce the error When I add the flag -dH, gfortran aborts with an ICE for a specific source file (attached). Full log: > gfortran -cpp -c -dH -v env_module.f90 Using built-in specs. COLLECT_GCC=gfortran Target: x86_64-unknown-linux-gnu Configured with: /tools/modulesystem/tools/gcc/gcc-5.1.0/src/configure --prefix=/tools/modulesystem/tools/gcc/gcc-5.1.0/install/sled11.x86_64.gcc-4.3.4.release Thread model: posix gcc version 5.1.0 (GCC) COLLECT_GCC_OPTIONS='-cpp' '-c' '-dH' '-v' '-mtune=generic' '-march=x86-64' /tools/modulesystem/tools/gcc/gcc-5.1.0/install/sled11.x86_64.gcc-4.3.4.release/libexec/gcc/x86_64-unknown-linux-gnu/5.1.0/f951 /home_local/zoel_ml/essex/phist/src/kernels/builtin/env_module.f90 -cpp=/tmp/ccMuxZYL.f90 -quiet -v /home_local/zoel_ml/essex/phist/src/kernels/builtin/env_module.f90 -quiet -dumpbase env_module.f90 -dH -mtune=generic -march=x86-64 -auxbase env_module -version -fintrinsic-modules-path /tools/modulesystem/tools/gcc/gcc-5.1.0/install/sled11.x86_64.gcc-4.3.4.release/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/finclude -o /tmp/ccMAZIhi.s GNU Fortran (GCC) version 5.1.0 (x86_64-unknown-linux-gnu) compiled by GNU C version 5.1.0, GMP version 5.1.3, MPFR version 3.1.2, MPC version 1.0.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring duplicate directory "/tools/modulesystem/tools/gcc/gcc-5.1.0/install/sled11.x86_64.gcc-4.3.4.release/include" ignoring nonexistent directory "/tools/modulesystem/tools/gcc/gcc-5.1.0/install/sled11.x86_64.gcc-4.3.4.release/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/../../../../x86_64-unknown-linux-gnu/include" ignoring duplicate directory "/tools/modulesystem/tools/gsl/gsl-1.16/install/sled11.x86_64.gcc-4.8.2.release/include" as it is a non-system directory that duplicates a system directory ignoring duplicate directory "/tools/modulesystem/tools/lapack/lapack-3.5.0/install/sled11.x86_64.gcc-4.8.2.release/include" as it is a non-system directory that duplicates a system directory ignoring duplicate directory "/tools/modulesystem/tools/gdb/gdb-7.9/install/sled11.x86_64.gcc-5.1.0.release/include" as it is a non-system directory that duplicates a system directory ignoring duplicate directory "/tools/modulesystem/tools/hwloc/hwloc-1.10.1/install/sled11.x86_64.gcc-5.1.0.release/include" as it is a non-system directory that duplicates a system directory ignoring duplicate directory "/tools/modulesystem/tools/likwid/likwid-3.1.3/install/sled11.x86_64.gcc-5.1.0.release.openmpi-1.8.4/include" as it is a non-system directory that duplicates a system directory ignoring duplicate directory "/tools/modulesystem/tools/openmpi/openmpi-1.8.4/install/sled11.x86_64.gcc-5.1.0.release.mpi-thread-multiple/include" as it is a non-system directory that duplicates a system directory ignoring duplicate directory "/tools/modulesystem/tools/binutils/binutils-2.25/install/sled11.x86_64.gcc-5.1.0.release/include" as it is a non-system directory that duplicates a system directory ignoring duplicate directory "/tools/modulesystem/tools/gcc/gcc-5.1.0/install/sled11.x86_64.gcc-4.3.4.release/include" as it is a non-system directory that duplicates a system directory ignoring duplicate directory "/tools/modulesystem/tools/mpc/mpc-1.0.1/install/sled11.x86_64.gcc-4.3.4.release/include" as it is a non-system directory that duplicates a system directory ignoring duplicate directory "/tools/modulesystem/tools/mpfr/mpfr-3.1.2/install/sled11.x86_64.gcc-4.3.4.release/include" as it is a non-system directory that duplicates a system directory ignoring duplicate directory "/tools/modulesystem/tools/isl/isl-0.14/install/sled11.x86_64.gcc-4.3.4.release/include" as it is a non-system directory that duplicates a system directory ignoring duplicate directory "/tools/modulesystem/tools/gmp/gmp-5.1.3/install/sled11.x86_64.gcc-4.3.4.release/include" as it is a non-system directory that duplicates a system directory ignoring duplicate directory "/tools/modulesystem/tools/python2.7/python2.7-2.7.6/install/sled11.x86_64.gcc-4.3.4.release/include" as it is a non-system directory that duplicates a system directory ignoring duplicate directory "/tools/modulesystem/tools/subversion/subversion-1.8.5/install/sled11.x86_64.gcc-4.3.4.release/include" as it is a non-system directory that duplicates a system directory ignoring duplicate directory "/tools/modulesystem/tools/sqlite/sqlite-3.8.2/install/sled11.x86_64.gcc-4.3.4.release/include" as it is a non-system directory that duplicates a system directory ignoring duplicate directory "/tools/modulesystem/tools/serf/serf-1.3.3/install/sled11.x86_64.gcc-4.3.4.release/include" as it is a non-system directory that duplicates a system directory ignoring duplicate directory "/tools/modulesystem/tools/aprutil/aprutil-1.5.3/install/sled11.x86_64.gcc-4.3.4.release/include" as it is a non-system directory that duplicates a system directory ignoring duplicate directory "/tools/modulesystem/tools/apr/apr-1.5.0/install/sled11.x86_64.gcc-4.3.4.release/include" as it is a non-system directory that duplicates a system directory ignoring duplicate directory "/tools/modulesystem/tools/expat/expat-2.1.0/install/sled11.x86_64.gcc-4.3.4.release/include" as it is a non-system directory that duplicates a system directory ignoring duplicate directory "/tools/modulesystem/tools/curl/curl-7.26.0/install/sled11.x86_64.gcc-4.3.4.release/include" as it is a non-system directory that duplicates a system directory #include "..." search starts here: #include <...> search starts here: /tools/modulesystem/tools/gcc/gcc-5.1.0/install/sled11.x86_64.gcc-4.3.4.release/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/finclude /tools/modulesystem/tools/gsl/gsl-1.16/install/sled11.x86_64.gcc-4.8.2.release/include /tools/modulesystem/tools/lapack/lapack-3.5.0/install/sled11.x86_64.gcc-4.8.2.release/include /tools/modulesystem/tools/gdb/gdb-7.9/install/sled11.x86_64.gcc-5.1.0.release/include /tools/modulesystem/tools/hwloc/hwloc-1.10.1/install/sled11.x86_64.gcc-5.1.0.release/include /tools/modulesystem/tools/likwid/likwid-3.1.3/install/sled11.x86_64.gcc-5.1.0.release.openmpi-1.8.4/include /tools/modulesystem/tools/openmpi/openmpi-1.8.4/install/sled11.x86_64.gcc-5.1.0.release.mpi-thread-multiple/include /tools/modulesystem/tools/binutils/binutils-2.25/install/sled11.x86_64.gcc-5.1.0.release/include /tools/modulesystem/tools/gcc/gcc-5.1.0/install/sled11.x86_64.gcc-4.3.4.release/include /tools/modulesystem/tools/mpc/mpc-1.0.1/install/sled11.x86_64.gcc-4.3.4.release/include /tools/modulesystem/tools/mpfr/mpfr-3.1.2/install/sled11.x86_64.gcc-4.3.4.release/include /tools/modulesystem/tools/isl/isl-0.14/install/sled11.x86_64.gcc-4.3.4.release/include /tools/modulesystem/tools/gmp/gmp-5.1.3/install/sled11.x86_64.gcc-4.3.4.release/include /tools/modulesystem/tools/python2.7/python2.7-2.7.6/install/sled11.x86_64.gcc-4.3.4.release/include /tools/modulesystem/tools/subversion/subversion-1.8.5/install/sled11.x86_64.gcc-4.3.4.release/include /tools/modulesystem/tools/sqlite/sqlite-3.8.2/install/sled11.x86_64.gcc-4.3.4.release/include /tools/modulesystem/tools/serf/serf-1.3.3/install/sled11.x86_64.gcc-4.3.4.release/include /tools/modulesystem/tools/aprutil/aprutil-1.5.3/install/sled11.x86_64.gcc-4.3.4.release/include /tools/modulesystem/tools/apr/apr-1.5.0/install/sled11.x86_64.gcc-4.3.4.release/include /tools/modulesystem/tools/expat/expat-2.1.0/install/sled11.x86_64.gcc-4.3.4.release/include /tools/modulesystem/tools/curl/curl-7.26.0/install/sled11.x86_64.gcc-4.3.4.release/include /tools/modulesystem/tools/gcc/gcc-5.1.0/install/sled11.x86_64.gcc-4.3.4.release/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/include /usr/local/include /tools/modulesystem/tools/gcc/gcc-5.1.0/install/sled11.x86_64.gcc-4.3.4.release/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/include-fixed /usr/include End of search list. GNU Fortran2008 (GCC) version 5.1.0 (x86_64-unknown-linux-gnu) compiled by GNU C version 5.1.0, GMP version 5.1.3, MPFR version 3.1.2, MPC version 1.0.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 gfortran: internal compiler error: Aborted (program f951) Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. When I remove the -dH it compiles fine (I left out a lot of flags that were not required to reproduce the bug). More information: self-build gcc 5.1.0 OS: SUSE Linux Enterprise Desktop 11 service pack 2 libc: 2.11.3 (20110527) native gcc: gcc (SUSE Linux) 4.3.4 [gcc-4_3-branch revision 152973] kernel: Linux 3.0.13-0.27-default x86_64 GNU/Linux