https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69929
Bug ID: 69929 Summary: Internal compiler error GCC$ ATTRIBUTES STDCALL Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- Created attachment 37775 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37775&action=edit Source code Compiling the file win_gnu_dynlib.f90 causes an internal compiler error.The GCC$ ATTRIBUTES STDCALL lines (for windows) are causing the crash. gfortran-6 -c -v win_gnu_dynlib.f90 Using built-in specs. COLLECT_GCC=gfortran-6 Target: x86_64-apple-darwin13.4.0 Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-6 Thread model: posix gcc version 6.0.0 20160213 (experimental) (GCC) COLLECT_GCC_OPTIONS='-c' '-v' '-mmacosx-version-min=10.9.4' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/f951 win_gnu_dynlib.f90 -fPIC -quiet -dumpbase win_gnu_dynlib.f90 -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase win_gnu_dynlib -version -fintrinsic-modules-path /usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_m0000gn/T//ccVTJ6eT.s GNU Fortran (GCC) version 6.0.0 20160213 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.0.0 20160213 (experimental), GMP version 6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran2008 (GCC) version 6.0.0 20160213 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.0.0 20160213 (experimental), GMP version 6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 ' win_gnu_dynlib.f90:76:0: cproc = c_get_procedure( handle, cname ) in pp_format, at pretty-print.c:635 Internal compiler error: Error reporting routines re-entered. gfortran-6: internal compiler error: Abort trap: 6 (program f951) Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.