[Bug fortran/94377] Won't compile when deallocating a parameterized derived type
kargl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Mar 28 04:35:24 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94377
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu.org
--- Comment #1 from kargl at gcc dot gnu.org ---
Either update to the most recent version of gfortran, or the code
included in this bug report is not the code that demonstrates the problem.
I get
% gfortran -c a.f90
a.f90:8:14:
type(av_t(:), allocatable :: av(:)
1
Error: Malformed type-spec at (1)
a.f90:17:29:
allocate ( av_t(k2) :: av(k3), stat=ista) ! For this ista not needed
1
Error: Allocate-object at (1) is neither a data pointer nor an allocatable
variable
a.f90:20:19:
deallocate(av, stat=ista)
1
Error: Allocate-object at (1) is not a nonprocedure pointer nor an allocatable
variable
for 8.3.1, 9.2.1, and 10.0
More information about the Gcc-bugs
mailing list