From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24174 invoked by alias); 3 Oct 2007 12:27:25 -0000 Received: (qmail 24111 invoked by uid 48); 3 Oct 2007 12:27:09 -0000 Date: Wed, 03 Oct 2007 12:27:00 -0000 Subject: [Bug fortran/33636] New: Rejects valid use of vector subscript in derived type parameter X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "fxcoudert at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-10/txt/msg00205.txt.bz2 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