public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dominiq at lps dot ens dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/33636] Rejects valid use of vector subscript in derived type parameter
Date: Wed, 03 Oct 2007 13:04:00 -0000	[thread overview]
Message-ID: <20071003130350.9065.qmail@sourceware.org> (raw)
In-Reply-To: <bug-33636-10259@http.gcc.gnu.org/bugzilla/>



------- Comment #1 from dominiq at lps dot ens dot fr  2007-10-03 13:03 -------
On PPC Darwin, I get:

[karma] f90/bug% gfc pr33636.f90
[karma] f90/bug% a.out
           0
[karma] f90/bug% gfc -m64 pr33636.f90
[karma] f90/bug% a.out
           0
[karma] f90/bug% gfc
/opt/gcc/_gcc-clean/gcc/testsuite/gfortran.dg/derived_comp_array_ref_5.f90
/opt/gcc/_gcc-clean/gcc/testsuite/gfortran.dg/derived_comp_array_ref_5.f90:34.28:

      v2 = vec3 (v1%coords ((/i+1, i, i-1/))) ! also broken
                           1
Error: index in dimension 1 is out of bounds at (1)
[karma] f90/bug% gfc -m64
/opt/gcc/_gcc-clean/gcc/testsuite/gfortran.dg/derived_comp_array_ref_5.f90
[karma] f90/bug% a.out 
[karma] f90/bug% 

i.e., the test case of this PR compiles for both 32 and 64 bit modes for gcc
version 4.3.0 20071002, while derived_comp_array_ref_5.f90 compiles only in 64
bit mode (wrong cast somewhere?-)


-- 


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


  parent reply	other threads:[~2007-10-03 13:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-03 12:27 [Bug fortran/33636] New: " fxcoudert at gcc dot gnu dot org
2007-10-03 12:27 ` [Bug fortran/33636] " fxcoudert at gcc dot gnu dot org
2007-10-03 13:04 ` dominiq at lps dot ens dot fr [this message]
2007-10-06 17:17 ` pault at gcc dot gnu dot org
2007-10-10 11:23 ` fxcoudert at gcc dot gnu dot org
2007-10-10 11:57 ` fxcoudert at gcc dot gnu dot org
2007-10-10 13:39 ` fxcoudert at gcc dot gnu dot org
2007-10-10 13:41 ` fxcoudert 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=20071003130350.9065.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).