[Bug fortran/20520] New: allocatable arrays may be used without being allocated
ebertakis at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Mar 17 17:31:00 GMT 2005
The compiler does not display an error message when in a source file
allocatable arrays are being used without having been allocated beforehand. For
example, the following code is erroneous, but nevertheless the compiler will
compile (and build) it silently:
real,allocatable:: a(:),b(:)
a(1)=2*b(1)
end
Of course, the executable produced will collapse when run.
The gfortran compiler used was the standalone package for Windows (downloaded
as a zip archive).
--
Summary: allocatable arrays may be used without being allocated
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ebertakis at gmail dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20520
More information about the Gcc-bugs
mailing list