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

vehre at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
         Depends on|                            |79863
            Summary|Impl                        |Implicit type conversion on
                   |                            |assignment of unallocated
                   |                            |array to unallocated array
                   |                            |variable segfaults.

--- Comment #1 from vehre at gcc dot gnu.org ---
The following code segfault with current trunk:

  integer, allocatable :: si(:)
  integer(kind=1), allocatable :: ssi(:)

  si = ssi
end

Note, there is a small difference to pr78963, namely the different integer
kind. This bug is not dependent on the specific kind, only the kinds on both
sides of the assignment operator have to different to show the issue.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79863
[Bug 79863] Assignment of unallocated array to unallocated array variable leads
to access of unallocated memory

Reply via email to