[Bug fortran/44672] [F08] ALLOCATE with SOURCE and no array-spec
vinzent.boerner at gmx dot de
gcc-bugzilla@gcc.gnu.org
Sun Nov 23 07:34:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44672
kalle <vinzent.boerner at gmx dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vinzent.boerner at gmx dot de
--- Comment #6 from kalle <vinzent.boerner at gmx dot de> ---
This bug is still virulent in gfortran 4.9 with source code:
Program tmp
Implicit None
Integer, Dimension(6) :: A
Integer, Allocatable, Dimension(:) :: B
A=1
Allocate(B,source=A)
write(*,*) B
End Program tmp
compiled with:
gfortran-4.9 -o tmp tmp.f90
will result in:
Allocate(B,source=A)
1
Error: Array specification required in ALLOCATE statement at (1)
More information about the Gcc-bugs
mailing list