public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mikael dot morin at tele2 dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/37903] [4.3/4.4 Regression] wrong-code for complicated vector subscripts
Date: Thu, 23 Oct 2008 22:32:00 -0000	[thread overview]
Message-ID: <20081023223115.22068.qmail@sourceware.org> (raw)
In-Reply-To: <bug-37903-14266@http.gcc.gnu.org/bugzilla/>



------- Comment #4 from mikael dot morin at tele2 dot fr  2008-10-23 22:31 -------
There is this comment at the beginning of gfc_trans_create_temp_array.

/* TODO: Investigate why "if (n < loop->temp_dim)
   gcc_assert (integer_zerop (loop->from[n]));" fails here.  */

This is the case here: n=0, loop->temp_dim=1, loop.from[0]=<lbound(i)>=-1

I don't understand the use of the (n >= loop->temp_dim) condition preventing
the loop bounds from being moved (to be zero-based).

The problem arises farther in the function, when gfc_index_zero_node is used
instead of loop.from, and only the (wrong) loop.to is taken into account. 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37903


  parent reply	other threads:[~2008-10-23 22:32 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-23 18:49 [Bug fortran/37903] New: " mikael dot morin at tele2 dot fr
2008-10-23 20:13 ` [Bug fortran/37903] [4.3/4.4 Regression] " burnus at gcc dot gnu dot org
2008-10-23 20:31 ` dominiq at lps dot ens dot fr
2008-10-23 21:28 ` mikael dot morin at tele2 dot fr
2008-10-23 22:32 ` mikael dot morin at tele2 dot fr [this message]
2008-10-24  5:49 ` dominiq at lps dot ens dot fr
2008-10-24 11:34 ` rguenth at gcc dot gnu dot org
2008-10-25 21:05 ` jakub at gcc dot gnu dot org
2008-10-28  6:26 ` pault at gcc dot gnu dot org
2008-10-28 12:22 ` mikael dot morin at tele2 dot fr
2008-10-28 14:44 ` mikael dot morin at tele2 dot fr
2008-10-28 17:20 ` dominiq at lps dot ens dot fr
2008-10-28 18:28 ` mikael dot morin at tele2 dot fr
2008-10-28 18:44 ` mikael dot morin at tele2 dot fr
2008-10-28 18:47 ` domob at gcc dot gnu dot org
2008-10-30 11:08 ` pault at gcc dot gnu dot org
2008-10-30 20:50 ` pault at gcc dot gnu dot org
2008-11-01 19:48 ` pault at gcc dot gnu dot org
2008-11-01 19:48 ` 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=20081023223115.22068.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: link
Be 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).