https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83316
Bug ID: 83316 Summary: ICE: minval/maxval and characters Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- Compiling the source file a.f90 causes an internal compiler error. I believe the code is legal. program tminmaxval implicit none character(len=*), parameter :: b = "a" character(len=*), parameter :: e = "c" character(len=*), parameter :: s(3) = (/"a", "b", "c"/) if (minval(s) /= b) then write(*,*) "minval(s) =", minval(s) end if if (maxval(s) /= e) then write(*,*) "maxval(s) =", maxval(s) end if end program tminmaxval LANG=C gfortran-8 -W -Wall a.f90 -v Driving: gfortran-8 -W -Wall a.f90 -v -mmacosx-version-min=10.11.0 -asm_macosx_version_min=10.11 -l gfortran -shared-libgcc Using built-in specs. COLLECT_GCC=gfortran-8 COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/8.0.0/lto-wrapper Target: x86_64-apple-darwin15.6.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=-8 Thread model: posix gcc version 8.0.0 20171203 (experimental) [trunk revision 255368] (GCC) COLLECT_GCC_OPTIONS='-Wextra' '-Wall' '-v' '-mmacosx-version-min=10.11.0' '-asm_macosx_version_min=10.11' '-shared-libgcc' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/8.0.0/f951 a.f90 -fPIC -quiet -dumpbase a.f90 -mmacosx-version-min=10.11.0 -mtune=core2 -auxbase a -Wextra -Wall -version -fintrinsic-modules-path /usr/local/lib/gcc/x86_64-apple-darwin15.6.0/8.0.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_m0000gn/T//ccL7uiWM.s GNU Fortran (GCC) version 8.0.0 20171203 (experimental) [trunk revision 255368] (x86_64-apple-darwin15.6.0) compiled by GNU C version 8.0.0 20171203 (experimental) [trunk revision 255368], GMP version 6.1.2, MPFR version 3.1.6, MPC version 1.0.3, isl version isl-0.16.1-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran2008 (GCC) version 8.0.0 20171203 (experimental) [trunk revision 255368] (x86_64-apple-darwin15.6.0) compiled by GNU C version 8.0.0 20171203 (experimental) [trunk revision 255368], GMP version 6.1.2, MPFR version 3.1.6, MPC version 1.0.3, isl version isl-0.16.1-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 f951: internal compiler error: gfc_convert_constant(): Unexpected type libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions.