https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93498
Bug ID: 93498 Summary: ICE in gfc_resolve_findloc, at fortran/iresolve.c:1844 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Started with new FINDLOC between 20181021 and 20181028 : $ cat z1a.f90 program p character(len=1, kind=1) :: x(3) = ['a', 'b', 'c'] character(len=1, kind=4) :: y = 4_'b' print *, findloc(x, y) print *, findloc(x, y, 1) end $ cat z1b.f90 program p character(len=1, kind=4) :: x(3) = [4_'a', 4_'b', 4_'c'] character(len=1, kind=1) :: y = 'b' print *, findloc(x, y) print *, findloc(x, y, 1) end $ gfortran-10-20200126 -c z1a.f90 z1a.f90:4:23: 4 | print *, findloc(x, y) | 1 internal compiler error: Cannot convert 'CHARACTER(1,4)' to 'CHARACTER(1)' at (1) 0x649569 gfc_report_diagnostic ../../gcc/fortran/error.c:782 0x64ac8a gfc_internal_error(char const*, ...) ../../gcc/fortran/error.c:1402 0x669f53 gfc_convert_type_warn(gfc_expr*, gfc_typespec*, int, int, bool) ../../gcc/fortran/intrinsic.c:5331 0x67546d gfc_resolve_findloc(gfc_expr*, gfc_expr*, gfc_expr*, gfc_expr*, gfc_expr*, gfc_expr*, gfc_expr*) ../../gcc/fortran/iresolve.c:1844 0x65ea8d resolve_intrinsic ../../gcc/fortran/intrinsic.c:4535 0x65ea8d do_simplify ../../gcc/fortran/intrinsic.c:4654 0x66921a gfc_intrinsic_func_interface(gfc_expr*, int) ../../gcc/fortran/intrinsic.c:4996 0x6c0cae resolve_unknown_f ../../gcc/fortran/resolve.c:2894 0x6c0cae resolve_function ../../gcc/fortran/resolve.c:3238 0x6c0cae gfc_resolve_expr(gfc_expr*) ../../gcc/fortran/resolve.c:7000 0x6b803c gfc_resolve_expr(gfc_expr*) ../../gcc/fortran/resolve.c:6967 0x6b803c gfc_resolve_code(gfc_code*, gfc_namespace*) ../../gcc/fortran/resolve.c:11688 0x6c6f2f gfc_resolve_blocks(gfc_code*, gfc_namespace*) ../../gcc/fortran/resolve.c:10715 0x6b6d68 gfc_resolve_code(gfc_code*, gfc_namespace*) ../../gcc/fortran/resolve.c:11678 0x6b95e7 resolve_codes ../../gcc/fortran/resolve.c:17205 0x6b96ae gfc_resolve(gfc_namespace*) ../../gcc/fortran/resolve.c:17240 0x6a7a0c resolve_all_program_units ../../gcc/fortran/parse.c:6244 0x6a7a0c gfc_parse_file() ../../gcc/fortran/parse.c:6491 0x6f265f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:210