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/78814] New: ICE in symbol_rank, at fortran/interface.c:1265


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

            Bug ID: 78814
           Summary: ICE in symbol_rank, at fortran/interface.c:1265
           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: ---

With invalid code, down to at least 4.8 :
(bailed out with official releases 5, 6)


$ cat z1.f90
program p
   class(*) :: x
   print *, f(x)
end


$ cat z2.f90
program p
   class(*) :: x
   x = f(x)
end


$ gfortran-7-20161211 -c z1.f90
z1.f90:2:16:

    class(*) :: x
                1
Error: CLASS variable 'x' at (1) must be dummy, allocatable or pointer
f951: internal compiler error: Segmentation fault
0xc4e79f crash_signal
        ../../gcc/toplev.c:333
0x6a07d3 symbol_rank
        ../../gcc/fortran/interface.c:1265
0x6a07d3 gfc_procedure_use(gfc_symbol*, gfc_actual_arglist**, locus*)
        ../../gcc/fortran/interface.c:3642
0x6f4764 resolve_unknown_f
        ../../gcc/fortran/resolve.c:2740
0x6f4764 resolve_function
        ../../gcc/fortran/resolve.c:3024
0x6f4dda gfc_resolve_expr(gfc_expr*)
        ../../gcc/fortran/resolve.c:6471
0x6fb3f2 gfc_resolve_code(gfc_code*, gfc_namespace*)
        ../../gcc/fortran/resolve.c:10807
0x6fb0c7 gfc_resolve_blocks(gfc_code*, gfc_namespace*)
        ../../gcc/fortran/resolve.c:9854
0x6fb4fb gfc_resolve_code(gfc_code*, gfc_namespace*)
        ../../gcc/fortran/resolve.c:10797
0x6fdee2 resolve_codes
        ../../gcc/fortran/resolve.c:16056
0x6fdfde gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.c:16091
0x6e82ba resolve_all_program_units
        ../../gcc/fortran/parse.c:5947
0x6e82ba gfc_parse_file()
        ../../gcc/fortran/parse.c:6194
0x72c312 gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:202

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