This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25031] New: Allocatable array can be reallocated.
- From: "iguchi at coral dot t dot u-tokyo dot ac dot jp" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Nov 2005 09:00:44 -0000
- Subject: [Bug fortran/25031] New: Allocatable array can be reallocated.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
In the following program, the run-time error should occur.
at the second allocation.
But I can successfully executed the program.
And at the second allocation, memory leak is also occur.
I think this is wrong behavior.
program alloc_test
implicit none
integer, allocatable :: a(:)
allocate(a(4))
allocate(a(4))
end program
--
Summary: Allocatable array can be reallocated.
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: iguchi at coral dot t dot u-tokyo dot ac dot jp
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25031