This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33264] New: lower index bound incorrect after array pointer assignment
- From: "enok at lysator dot liu dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Aug 2007 12:46:42 -0000
- Subject: [Bug fortran/33264] New: lower index bound incorrect after array pointer assignment
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When assigning from an array with lower index bound /=1 the lower index bound
is ignored (set to 1). Afaik the lower index bound should be copied from the
target.
PROGRAM TST
IMPLICIT NONE
REAL, TARGET :: A(10:20)
REAL, POINTER :: B(:)
B => A
WRITE(*,*) LBOUND(B,1)
END PROGRAM TST
bash> gfortran421 -o tst tst.f90
bash> ./tst
1
bash>
--
Summary: lower index bound incorrect after array pointer
assignment
Product: gcc
Version: 4.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: enok at lysator dot liu dot se
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33264