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/71764] compiler internal error: segmentation fault


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

--- Comment #5 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Some other variants :


$ cat zz1.f90
program p
   use iso_c_binding, only: c_ptr, c_null_ptr, c_ptr
   type(c_ptr) :: c
   c = c_null_ptr
end


$ cat zz3.f90
program p
   use iso_c_binding, only: c_ptr
   use iso_c_binding, only: c_null_ptr
   use iso_c_binding, only: c_ptr
   type(c_ptr) :: c
   c = c_null_ptr
end


$ cat zz4.f90   # OK
program p
   use iso_c_binding, only: c_null_ptr
   use iso_c_binding, only: c_ptr
   type(c_ptr) :: c
   c = c_null_ptr
end


$ gfortran-7 zz1.f90
zz1.f90:4:0:

    c = c_null_ptr

internal compiler error: Segmentation fault
0xc0dd2f crash_signal
        ../../gcc/toplev.c:335
0x75e442 gfc_trans_structure_assign(tree_node*, gfc_expr*, bool)
        ../../gcc/fortran/trans-expr.c:7361
#...

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