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/32298] MINLOC / MAXLOC: off-by one for PARAMETER arrays
Date: Mon, 15 Oct 2007 18:24:00 -0000	[thread overview]
Message-ID: <20071015182357.13977.qmail@sourceware.org> (raw)
In-Reply-To: <bug-32298-14685@http.gcc.gnu.org/bugzilla/>



------- Comment #7 from tkoenig at gcc dot gnu dot org  2007-10-15 18:23 -------
Subject: Bug 32298

Author: tkoenig
Date: Mon Oct 15 18:23:39 2007
New Revision: 129365

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129365
Log:
2007-10-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
            Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/32298
        PR fortran/31726
        PR fortran/33354
        Backport from trunk
        * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc): Calculate
        the offset between the loop counter and the position as
        defined. Add the offset within the loop so that the mask acts
        correctly.  Do not advance the location on the basis that it
        is zero.

2007-10-15  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR fortran/33354
        * gfortran.dg/minmaxloc_4.f90:  New test.



Added:
    branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/minmaxloc_4.f90
Modified:
    branches/gcc-4_2-branch/gcc/fortran/ChangeLog
    branches/gcc-4_2-branch/gcc/fortran/trans-intrinsic.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


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


      parent reply	other threads:[~2007-10-15 18:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-12  8:25 [Bug fortran/32298] New: Intrinsic MINLOC / MAXLOC gives wrong results (gfortran build 20070522) jens dot bischoff at freenet dot de
2007-06-12 16:05 ` [Bug fortran/32298] MINLOC / MAXLOC: off-by one for PARAMETER arrays burnus at gcc dot gnu dot org
2007-06-12 16:12 ` burnus at gcc dot gnu dot org
2007-06-16 14:00 ` dfranke at gcc dot gnu dot org
2007-06-20 12:15 ` pault at gcc dot gnu dot org
2007-06-21  5:05 ` patchapp at dberlin dot org
2007-06-24 11:04 ` pault at gcc dot gnu dot org
2007-06-24 11:06 ` pault at gcc dot gnu dot org
2007-10-15 18:24 ` tkoenig at gcc dot gnu dot org [this message]

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=20071015182357.13977.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).