[Bug fortran/34640] ICE when assigning item of a derived-component to a pointer
damian at sourceryinstitute dot org
gcc-bugzilla@gcc.gnu.org
Wed Mar 1 15:23:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34640
Damian Rouson <damian at sourceryinstitute dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |damian at sourceryinstitute dot or
| |g
--- Comment #28 from Damian Rouson <damian at sourceryinstitute dot org> ---
Below is a reduced version of attachment 38089 from the Comment 27. gfortran
7.0.1 20170205 produces an ICE on whatever is the first line unless the
penultimate line is removed.
$ cat chester.f90
type var_tables
real, pointer :: rvar(:)
end type
type real_vars
real r
end type
type(var_tables) vtab_r
type(real_vars), target :: x(1)
vtab_r%rvar => x%r ! deleting this pointer association eliminates the ICE
end
$ gfortran chester.f90
chester.f90:1:0:
type var_tables
internal compiler error: Segmentation fault: 11
chester.f90:1:0: internal compiler error: Abort trap: 6
gfortran: internal compiler error: Abort trap: 6 (program f951)
$ $ gfortran --version
GNU Fortran (MacPorts gcc7 7-20170205_0) 7.0.1 20170205 (experimental)
More information about the Gcc-bugs
mailing list