public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/32315] DATA with implied-do: Bounds checks missing [regression vs. g77] Date: Sun, 20 Jan 2008 11:56:00 -0000 [thread overview] Message-ID: <20080120104830.29433.qmail@sourceware.org> (raw) In-Reply-To: <bug-32315-13404@http.gcc.gnu.org/bugzilla/> ------- 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
next prev parent reply other threads:[~2008-01-20 10:49 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-06-13 6:25 [Bug fortran/32315] New: DATA with implied-do: Bounds checks missing burnus at gcc dot gnu dot org 2007-06-13 6:46 ` [Bug fortran/32315] " burnus at gcc dot gnu dot org 2007-06-13 20:51 ` fxcoudert at gcc dot gnu dot org 2007-06-14 6:43 ` burnus at gcc dot gnu dot org 2008-01-20 11:56 ` tkoenig at gcc dot gnu dot org [this message] 2008-02-05 9:37 ` [Bug fortran/32315] DATA with implied-do: Bounds checks missing [regression vs. g77] pault at gcc dot gnu dot org 2008-02-05 11:18 ` pault at gcc dot gnu dot org 2008-02-05 13:07 ` pault at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20080120104830.29433.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).