[Bug fortran/88143] New: gfortran crashes with an internal compiler error
andrew at fluidgravity dot co.uk
gcc-bugzilla@gcc.gnu.org
Wed Nov 21 22:52:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88143
Bug ID: 88143
Summary: gfortran crashes with an internal compiler error
Product: gcc
Version: 8.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: andrew at fluidgravity dot co.uk
Target Milestone: ---
I get an internal compiler error when compiling the code below:
> gfortran -c code.f90
f951: internal compiler error: Segmentation fault: 11
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://github.com/Homebrew/homebrew-core/issues> for instructions.
code.f90:
MODULE m
IMPLICIT NONE
TYPE t
INTEGER, DIMENSION(:), ALLOCATABLE :: i
END TYPE
CONTAINS
SUBROUTINE s(x)
CLASS(*), DIMENSION(:), INTENT(IN), OPTIONAL :: x
INTEGER :: k
SELECT TYPE ( x )
CLASS IS ( t )
ASSOCIATE ( j => x(1)%i )
k = j(1)
END ASSOCIATE
END SELECT
END
END
More information about the Gcc-bugs
mailing list