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

            Bug ID: 85851
           Summary: trunk 260152 ICE in gfc_conv_structure Segmentation
                    fault at trans-expr.c:7810
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu

! trunk 260152 ICE in gfc_conv_structure Segmentation fault at
trans-expr.c:7810
! must be compiled with -finit-derived
! from test case pr35983
      use ISO_C_BINDING
      type, bind(C) :: descr
       type(C_PTR) :: address
      end type descr
      type(descr) :: DD
      double precision, target :: buf(1)

      DD = descr(c_loc(buf))
      end
!p.f90:4:0:
!
!       use ISO_C_BINDING
! 
!internal compiler error: Segmentation fault
!0xcedddf crash_signal
!       ../../gcc-260152/gcc/toplev.c:325
!0x153cd5c78fcf ???
!      
/usr/src/debug/glibc-2.27-37-g39071a5539/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
!0x855b53 gfc_conv_structure(gfc_se*, gfc_expr*, int)
!       ../../gcc-260152/gcc/fortran/trans-expr.c:7810
!0x855527 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool,
bool, bool)
!       ../../gcc-260152/gcc/fortran/trans-expr.c:6951
!0x855aa5 gfc_conv_structure(gfc_se*, gfc_expr*, int)
!       ../../gcc-260152/gcc/fortran/trans-expr.c:7818
!0x855527 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool,
bool, bool)
!       ../../gcc-260152/gcc/fortran/trans-expr.c:6951
!0x83cca4 gfc_get_symbol_decl(gfc_symbol*)
!       ../../gcc-260152/gcc/fortran/trans-decl.c:1835
!0x83fe37 generate_local_decl
!       ../../gcc-260152/gcc/fortran/trans-decl.c:5595
!0x8003e2 do_traverse_symtree
!       ../../gcc-260152/gcc/fortran/symbol.c:4165
!0x840b12 generate_local_vars
!       ../../gcc-260152/gcc/fortran/trans-decl.c:5795
!0x840b12 gfc_generate_function_code(gfc_namespace*)
!       ../../gcc-260152/gcc/fortran/trans-decl.c:6442
!0x7cc1c6 translate_all_program_units
!       ../../gcc-260152/gcc/fortran/parse.c:6121
!0x7cc1c6 gfc_parse_file()
!       ../../gcc-260152/gcc/fortran/parse.c:6324
!0x81243f gfc_be_parse_file
!       ../../gcc-260152/gcc/fortran/f95-lang.c:204
!Please submit a full bug report,
!with preprocessed source if appropriate.
!Please include the complete backtrace with any bug report.
!See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to