This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32454] New: Bounds-check misses overflow of lhs array
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jun 2007 12:26:01 -0000
- Subject: [Bug fortran/32454] New: Bounds-check misses overflow of lhs array
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Should give with -fbounds-check something like the following (NAG f95 -C=all):
Rank 1 of array operand has extent 8 instead of 4
Program terminated by fatal error
In BOUNDSERROR, line 7 of test.f90
I think it might a duplicate of some PR, though I couldn't find it.
program boundsError
implicit none
integer :: i
integer, dimension(:), allocatable :: y
allocate(y(4))
y = 0.0
print *, size(y)
y = [y, (99,i=1,4)]
print *, size(y)
end program boundsError
--
Summary: Bounds-check misses overflow of lhs array
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
OtherBugsDependingO 27766
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32454