[Bug fortran/33636] New: Rejects valid use of vector subscript in derived type parameter
fxcoudert at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Oct 3 12:27:00 GMT 2007
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
More information about the Gcc-bugs
mailing list