Created attachment 42740 [details] tree dump of failing test integer, target :: tgt = 45 type :: t integer, pointer :: i => tgt end type type(t), allocatable :: c(:)[:] allocate(c(10)[*]) deallocate(c) end fails with: [pault@pc30 pr83076]$ ~/irun/bin/gfortran -static-libgfortran test.f90 -fdump-tree-original -O3 -fcoarray=lib -lcaf_single -g [pault@pc30 pr83076]$ ./a.out At line 8 of file test.f90 Fortran runtime error: Attempt to DEALLOCATE unallocated 'c' Error termination. Backtrace: #0 0x4029f4 in MAIN__ at /home/pault/prs/pr83076/test.f90:8 #1 0x4029f4 in main at /home/pault/prs/pr83076/test.f90:9 The tree dump is attached. The version with an allocatable component works as expected. Paul
Could be caused by r244196 (pr78781).
GCC 7.3 is being released, adjusting target milestone.
The GCC 7 branch is being closed, re-targeting to GCC 8.4.
GCC 8.4.0 has been released, adjusting target milestone.
GCC 8 branch is being closed.
GCC 9.4 is being released, retargeting bugs to GCC 9.5.
GCC 9 branch is being closed
GCC 10.4 is being released, retargeting bugs to GCC 10.5.
GCC 10 branch is being closed.