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/70870] New: Segmentation violation in gfc_assign_data_value


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

            Bug ID: 70870
           Summary: Segmentation violation in gfc_assign_data_value
           Product: gcc
           Version: 6.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com
  Target Milestone: ---

! gfortran 6.1.0 Segmentation fault in gfc_assign_data_value
      type t
       integer :: g=0   ! default initialization
      end type
      type(t) :: v2
      data v2/t(2)/     ! this is wrong
      end
!f951: internal compiler error: Segmentation fault
!0xa6532f crash_signal
!        ../../gcc-6.1.0/gcc/toplev.c:333
!0x5de1fc gfc_assign_data_value(gfc_expr*, gfc_expr*, __mpz_struct*,
!__mpz_struct (*) [1])
!        ../../gcc-6.1.0/gcc/fortran/data.c:500
!0x651762 check_data_variable
!        ../../gcc-6.1.0/gcc/fortran/resolve.c:14564
!0x651762 traverse_data_var
!        ../../gcc-6.1.0/gcc/fortran/resolve.c:14693
!0x65be91 resolve_data
!        ../../gcc-6.1.0/gcc/fortran/resolve.c:14748
!0x65be91 resolve_types
!        ../../gcc-6.1.0/gcc/fortran/resolve.c:15501
!0x6576bf gfc_resolve(gfc_namespace*)
!        ../../gcc-6.1.0/gcc/fortran/resolve.c:15586
!0x642eda resolve_all_program_units
!        ../../gcc-6.1.0/gcc/fortran/parse.c:5552
!0x642eda gfc_parse_file()
!        ../../gcc-6.1.0/gcc/fortran/parse.c:5804
!0x684135 gfc_be_parse_file
!        ../../gcc-6.1.0/gcc/fortran/f95-lang.c:201
!Please submit a full bug report,
!with preprocessed source if appropriate.
!Please include the complete backtrace with any bug report.
!See <http://gcc.gnu.org/bugs.html> for instructions.

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