[Bug fortran/92753] New: ICE in gfc_trans_call, at fortran/trans-stmt.c:392

gscfq@t-online.de gcc-bugzilla@gcc.gnu.org
Mon Dec 2 18:35:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92753

            Bug ID: 92753
           Summary: ICE in gfc_trans_call, at fortran/trans-stmt.c:392
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started to ICE between 20181028 and 20181104 :


$ cat z1.f90
module m
   type t
      character(3) :: c
   end type
   type(t), parameter :: x = t('abc')
end
program p
   use m
   call s(x%c%len)
contains
   subroutine s(n)
      print *, n
   end
end


$ gfortran-10-20191201 -c z1.f90
z1.f90:9:0:

    9 |    call s(x%c%len)
      |
internal compiler error: in gfc_trans_call, at fortran/trans-stmt.c:392
0x74366e gfc_trans_call(gfc_code*, bool, tree_node*, tree_node*, bool)
        ../../gcc/fortran/trans-stmt.c:392
0x6d49f1 trans_code
        ../../gcc/fortran/trans.c:1920
0x6fda64 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6798
0x686c26 translate_all_program_units
        ../../gcc/fortran/parse.c:6302
0x686c26 gfc_parse_file()
        ../../gcc/fortran/parse.c:6541
0x6d10bf gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:210


More information about the Gcc-bugs mailing list