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

This was seen on ppc-darwin and x86_64-linux with -m32:

$ cat x.f90
  implicit none
  type vec3
    integer, dimension(1) :: coords
  end type vec3
  type(vec3), parameter :: v1 = vec3((/ 0 /))
  integer :: i

  i = 1
  print *, v1%coords ((/i/))
  end
$ gfortran -m32 x.f90
x.f90:9.23:

  print *, v1%coords ((/i/))
                     1
Error: index in dimension 1 is out of bounds at (1)


-- 
           Summary: Rejects valid use of vector subscript in derived type
                    parameter
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org
OtherBugsDependingO 32834
             nThis:


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


             reply	other threads:[~2007-10-03 12:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-03 12:27 fxcoudert at gcc dot gnu dot org [this message]
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
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=bug-33636-10259@http.gcc.gnu.org/bugzilla/ \
    --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).