From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32273 invoked by alias); 12 Oct 2008 12:11:14 -0000 Received: (qmail 32062 invoked by uid 48); 12 Oct 2008 12:09:54 -0000 Date: Sun, 12 Oct 2008 12:11:00 -0000 Message-ID: <20081012120954.32061.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/36683] -fbounds-check failure for allocated array and spread In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tkoenig 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: 2008-10/txt/msg00788.txt.bz2 ------- Comment #1 from tkoenig at gcc dot gnu dot org 2008-10-12 12:09 ------- The front end obligingly fills out the descriptor for the libray with an extent of 3: atmp.5.dim[1].stride = 5; atmp.5.dim[1].lbound = 0; atmp.5.dim[1].ubound = 2; atmp.5.data = (void *) &A.6; atmp.5.offset = 0; _gfortran_spread (&atmp.5, &parm.4, &C.1545, &C.1546); It does so without checking conformance with the rest of the expression. -- tkoenig at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tkoenig at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36683