This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33636] New: Rejects valid use of vector subscript in derived type parameter
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Oct 2007 12:27:09 -0000
- Subject: [Bug fortran/33636] New: Rejects valid use of vector subscript in derived type parameter
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This was seen on ppc-darwin and x86_64-linux with -m32:
$ cat x.f90
implicit none
type vec3
integer, dimension(1) :: coords
end type vec3
type(vec3), parameter :: v1 = vec3((/ 0 /))
integer :: i
i = 1
print *, v1%coords ((/i/))
end
$ gfortran -m32 x.f90
x.f90:9.23:
print *, v1%coords ((/i/))
1
Error: index in dimension 1 is out of bounds at (1)
--
Summary: Rejects valid use of vector subscript in derived type
parameter
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fxcoudert at gcc dot gnu dot org
OtherBugsDependingO 32834
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33636