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/78686] New: ICE in gfc_apply_init, at fortran/expr.c:4124


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

            Bug ID: 78686
           Summary: ICE in gfc_apply_init, at fortran/expr.c:4124
           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 :


$ cat z1.f90
program p
   type t
      character :: c(1) = [t()]
   end type
end


$ gfortran-7-20161204 z1.f90
f951: internal compiler error: in gfc_apply_init, at fortran/expr.c:4124
0x6911be gfc_apply_init(gfc_typespec*, symbol_attribute*, gfc_expr*)
        ../../gcc/fortran/expr.c:4124
0x684d98 build_struct
        ../../gcc/fortran/decl.c:1942
0x684d98 variable_decl
        ../../gcc/fortran/decl.c:2437
0x684d98 gfc_match_data_decl()
        ../../gcc/fortran/decl.c:4892
0x6dca79 match_word_omp_simd
        ../../gcc/fortran/parse.c:93
0x6e002e match_word
        ../../gcc/fortran/parse.c:377
0x6e002e decode_statement
        ../../gcc/fortran/parse.c:377
0x6e1e34 next_free
        ../../gcc/fortran/parse.c:1180
0x6e1e34 next_statement
        ../../gcc/fortran/parse.c:1413
0x6e337a parse_derived
        ../../gcc/fortran/parse.c:3233
0x6e337a parse_spec
        ../../gcc/fortran/parse.c:3773
0x6e5bb3 parse_progunit
        ../../gcc/fortran/parse.c:5615
0x6e71a4 gfc_parse_file()
        ../../gcc/fortran/parse.c:6124
0x72b182 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]