Hi,
when using Compiler_Options() from intrinsic::Iso_Fortran_Env together with -Minline, pgfortran crashes with an internal compiler error.
Example:
program Compiler_Information
use, intrinsic :: Iso_Fortran_Env, only: Compiler_Options, Compiler_Version
print *, Compiler_Version()
print *, Compiler_Options()
end program Compiler_Information
compiled with:
pgfortran -Mfree -Minline compiler_information.F
results in:
PGF90-S-0000-Internal compiler error. compiler_options: command line not available 0 (compiler_information.F: 23)
pgfortran-Fatal-/sw/taurus/compilers/pgi/15.9/linux86-64/15.9/bin/pgf901 TERMINATED by signal 11
Arguments to /sw/taurus/compilers/pgi/15.9/linux86-64/15.9/bin/pgf901
/sw/taurus/compilers/pgi/15.9/linux86-64/15.9/bin/pgf901 compiler_information.F -opt 1 -terse 1 -inform warn -nohpf -nostatic -x 19 0x400000 -quad -x 59 4 -x 15 2 -x 49 0x400004 -x 51 0x20 -x 57 0x4c -x 58 0x10000 -x 124 0x1000 -tp haswell -x 57 0xfb0000 -x 58 0x78031040 -x 47 0x08 -x 48 4608 -x 49 0x100 -x 120 0x200 -stdinc /sw/taurus/compilers/pgi/15.9/linux86-64/15.9/include-gcc44:/sw/taurus/compilers/pgi/15.9/linux86-64/15.9/include:/usr/local/include:/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include:/usr/include -def unix -def __unix -def __unix__ -def linux -def __linux -def __linux__ -def __NO_MATH_INLINES -def __LP64__ -def __x86_64 -def __x86_64__ -def __LONG_MAX__=9223372036854775807L -def '__SIZE_TYPE__=unsigned long int' -def '__PTRDIFF_TYPE__=long int' -def __THROW= -def __extension__= -def __amd_64__amd64__ -def __k8 -def __k8__ -def __SSE__ -def __MMX__ -def __SSE2__ -def __SSE3__ -def __SSSE3__ -preprocess -nofreeform -vect 48 -y 54 1 -x 70 0x40000000 -y 163 0xc0000000 -x 189 0x10 -freeform -y 89 0x42 -output /tmp/pgfortranGn7bG5PxvhAC.ilm
It compiles properly if I leave out the -Minline. I have already checked and there definitely is enough space in /tmp.
Is this a bug in the compiler?
pgfortran --version
pgfortran 15.9-0 64-bit target on x86-64 Linux -tp haswell