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

Reply via email to