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/85543] New: ICE in update_current_proc_array_outer_dependency, at fortran/resolve.c:3060


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

            Bug ID: 85543
           Summary: ICE in update_current_proc_array_outer_dependency, at
                    fortran/resolve.c:3060
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Affects versions down to gfortran-5 :


$ cat z1.f90
program p
   procedure(), pointer :: z
contains
   real(z()) function f()
   end
end


$ gfortran-4.9 -c z1.f90
z1.f90:4.8:

   real(z()) function f()
        1
Error: Function 'z' in initialization expression at (1) must be an intrinsic
function


$ gfortran-8-20180422 -c z1.f90
f951: internal compiler error: Segmentation fault
0xb9d82f crash_signal
        ../../gcc/toplev.c:325
0x717d97 update_current_proc_array_outer_dependency
        ../../gcc/fortran/resolve.c:3060
0x70dca0 resolve_function
        ../../gcc/fortran/resolve.c:3300
0x70e3da gfc_resolve_expr(gfc_expr*)
        ../../gcc/fortran/resolve.c:6719
0x6aaf8f gfc_reduce_init_expr(gfc_expr*)
        ../../gcc/fortran/expr.c:2773
0x6ada91 gfc_match_init_expr(gfc_expr**)
        ../../gcc/fortran/expr.c:2821
0x692565 gfc_match_kind_spec(gfc_typespec*, bool)
        ../../gcc/fortran/decl.c:2872
0x698b92 gfc_match_decl_type_spec(gfc_typespec*, int)
        ../../gcc/fortran/decl.c:4241
0x699b63 gfc_match_prefix(gfc_typespec*)
        ../../gcc/fortran/decl.c:5955
0x699d37 gfc_match_function_decl()
        ../../gcc/fortran/decl.c:6952
0x6f9b12 decode_statement
        ../../gcc/fortran/parse.c:343
0x6fbb34 next_free
        ../../gcc/fortran/parse.c:1230
0x6fbb34 next_statement
        ../../gcc/fortran/parse.c:1462
0x6ffc34 parse_contained
        ../../gcc/fortran/parse.c:5516
0x6ffb66 parse_progunit
        ../../gcc/fortran/parse.c:5739
0x700ef4 gfc_parse_file()
        ../../gcc/fortran/parse.c:6207
0x747e2f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:204

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