This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/20520] New: allocatable arrays may be used without being allocated
- From: "ebertakis at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Mar 2005 17:31:44 -0000
- Subject: [Bug fortran/20520] New: allocatable arrays may be used without being allocated
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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