https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90890

            Bug ID: 90890
           Summary: segfault on LHS memory reallocation
           Product: gcc
           Version: 8.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bharat.mahajan at hotmail dot com
  Target Milestone: ---

The following program fails with segfault:

program test
    implicit  none
    real, dimension(:), allocatable :: a    
    integer :: b

    a = [a, 2.0]
    b = -100
end program test

Compiled it without any option to gfortran on MingW (Win10). If you comment out
the line "b=-100" then it works! gfortran version:

GNU Fortran (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0

Reply via email to