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

            Bug ID: 79863
           Summary: Assignment of unallocated array to unallocated array
                    variable leads to access of unallocated memory
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vehre at gcc dot gnu.org
  Target Milestone: ---

The following simple test code:

  integer, allocatable :: si(:)
  integer, allocatable :: ssi(:)

  si = ssi
end

is IMHO valid Fortran (2003+ at least), but when run in valgrind will show
access to unallocated memory. Without valgrind it most of the time executes
without error.

Reply via email to