------- Comment #1 from kargl at gcc dot gnu dot org  2008-12-05 21:02 -------
I'll take this as part of the [de]allocate work.  Note, this also causes a
segfault with all versions of gfortran

program a
  implicit none
  integer, allocatable :: i(:)
  allocate(i(4))
  deallocate(i, stat=i(1))
end program a

My current patch does

troutmask:sgk[254] gfc4x -o z b.f90
b.f90:6.22:

  deallocate(i, stat=i(1))
                     1
Error: stat-variable at (1) shall not be deallocated within the same DEALLOCATE
statement


-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |kargl at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-12-05 21:02:59
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38389

Reply via email to