This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/71764] compiler internal error: segmentation fault
- From: "gerhard dot steinmetz dot fortran at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 05 Jul 2016 20:13:59 +0000
- Subject: [Bug fortran/71764] compiler internal error: segmentation fault
- Auto-submitted: auto-generated
- References: <bug-71764-4@http.gcc.gnu.org/bugzilla/>
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
#...