[Bug fortran/71764] compiler internal error: segmentation fault
gerhard.steinmetz.fortran@t-online.de
gcc-bugzilla@gcc.gnu.org
Tue Jul 5 20:14:00 GMT 2016
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
#...
More information about the Gcc-bugs
mailing list