This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/71894] New: ICE in gfc_add_component_ref, at fortran/class.c:227


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

            Bug ID: 71894
           Summary: ICE in gfc_add_component_ref, at fortran/class.c:227
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

Should also been taken into account, in addition to pr71862 :


$ cat z1.f90
program p
   type t
      integer :: n
   end type
   type(t) :: x
   class(t) :: y
   x = y
end


$ gfortran-6 z1.f90            # release
z1.f90:6:16:

    class(t) :: y
                1
Error: CLASS variable 'y' at (1) must be dummy, allocatable or pointer
(null):0: confused by earlier errors, bailing out


$ gfortran-7-20160710 z1.f90   # eperimental
z1.f90:6:16:

    class(t) :: y
                1
Error: CLASS variable 'y' at (1) must be dummy, allocatable or pointer
f951: internal compiler error: Segmentation fault
0xc0f1ff crash_signal
        ../../gcc/toplev.c:335
0x66ab51 gfc_add_component_ref(gfc_expr*, char const*)
        ../../gcc/fortran/class.c:227
0x6ead24 resolve_ordinary_assign
        ../../gcc/fortran/resolve.c:9751
0x6ead24 gfc_resolve_code(gfc_code*, gfc_namespace*)
        ../../gcc/fortran/resolve.c:10570
0x6eb272 resolve_codes
        ../../gcc/fortran/resolve.c:15667
0x6eb361 gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.c:15701
0x6d668a resolve_all_program_units
        ../../gcc/fortran/parse.c:5853
0x6d668a gfc_parse_file()
        ../../gcc/fortran/parse.c:6105
0x718d12 gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:198

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]