From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29557 invoked by alias); 20 Jan 2008 10:49:17 -0000 Received: (qmail 29434 invoked by uid 48); 20 Jan 2008 10:48:30 -0000 Date: Sun, 20 Jan 2008 11:56:00 -0000 Message-ID: <20080120104830.29433.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/32315] DATA with implied-do: Bounds checks missing [regression vs. g77] 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-01/txt/msg02184.txt.bz2 ------- Comment #3 from tkoenig at gcc dot gnu dot org 2008-01-20 10:48 ------- This is a regression vs. g77: $ cat foo.f program chkdata character*20 string(4) data ( string(i) ,i=1,5 ) /'A', 'B', 'C', 'D', 'E' / write(*,*) string end $ g77 foo.f foo.f: In program `chkdata': foo.f:3: data ( string(i) ,i=1,5 ) /'A', 'B', 'C', 'D', 'E' / ^ Attempt to specify second initial value for `string' at (^) $ cat bar.f program chkdata character*20 string(4) data ( string(i) ,i=-3,1 ) /'A', 'B', 'C', 'D', 'E' / write(*,*) string end $ g77 bar.f Array subscript #1 out of range for initialization of `string' in statement at (1) Array subscript #1 out of range for initialization of `string' in statement at (1) bar.f: In program `chkdata': bar.f:3: data ( string(i) ,i=-3,1 ) /'A', 'B', 'C', 'D', 'E' / ^ Attempt to specify second initial value for element of `string' at (^) Array subscript #1 out of range for initialization of `string' in statement at (1) bar.f:3: data ( string(i) ,i=-3,1 ) /'A', 'B', 'C', 'D', 'E' / ^ Attempt to specify second initial value for element of `string' at (^) Array subscript #1 out of range for initialization of `string' in statement at (1) bar.f:3: data ( string(i) ,i=-3,1 ) /'A', 'B', 'C', 'D', 'E' / ^ Attempt to specify second initial value for element of `string' at (^) bar.f:3: data ( string(i) ,i=-3,1 ) /'A', 'B', 'C', 'D', 'E' / ^ Attempt to specify second initial value for element of `string' at (^) $ -- tkoenig at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tkoenig at gcc dot gnu dot | |org Summary|DATA with implied-do: Bounds|DATA with implied-do: Bounds |checks missing |checks missing [regression | |vs. g77] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32315