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/29391] LBOUND(TRANSPOSE(I)) doesn't work
Date: Mon, 09 Oct 2006 11:39:00 -0000	[thread overview]
Message-ID: <20061009113905.4109.qmail@sourceware.org> (raw)
In-Reply-To: <bug-29391-10259@http.gcc.gnu.org/bugzilla/>



------- Comment #1 from fxcoudert at gcc dot gnu dot org  2006-10-09 11:39 -------
The same thing is true for all the array manipulation functions:

  integer :: i(-1:1,-1:1) = 0
  integer :: j(-1:2) = 0

  ! This is working correctly
  write(*,*) lbound(i(-1:1,-1:1)), ubound(i(-1:1,-1:1))
  write(*,*) lbound(i(:,:)), ubound(i(:,:))
  write(*,*) lbound(i(0:,-1:)), ubound(i(0:,-1:))
  write(*,*) lbound(i(:0,:1)), ubound(i(:0,:1))

  ! None of the following is working
  write(*,*) lbound(transpose(i)), ubound(transpose(i))
  write(*,*) lbound(reshape(i,(/2,2/))), ubound(reshape(i,(/2,2/)))
  write(*,*) lbound(cshift(i,-1)), ubound(cshift(i,-1))
  write(*,*) lbound(eoshift(i,-1)), ubound(eoshift(i,-1))
  write(*,*) lbound(spread(i,1,2)), ubound(spread(i,1,2))
  write(*,*) lbound(maxloc(i)), ubound(maxloc(i))
  write(*,*) lbound(minloc(i)), ubound(minloc(i))
  write(*,*) lbound(maxval(i,2)), ubound(maxval(i,2))
  write(*,*) lbound(minval(i,2)), ubound(minval(i,2))
  write(*,*) lbound(product(i,2)), ubound(product(i,2))
  write(*,*) lbound(sum(i,2)), ubound(sum(i,2))
  write(*,*) lbound(any(i==1,2)), ubound(any(i==1,2))
  write(*,*) lbound(count(i==1,2)), ubound(count(i==1,2))
  write(*,*) lbound(matmul(i,i)), ubound(matmul(i,i))
  write(*,*) lbound(lbound(i)), ubound(lbound(i))
  write(*,*) lbound(ubound(i)), ubound(ubound(i))
  write(*,*) lbound(shape(i)), ubound(shape(i))
  write(*,*) lbound(pack(i,.true.)), ubound(pack(i,.true.))
  write(*,*) lbound(unpack(j,(/.true./),(/2/))), &
             ubound(unpack(j,(/.true./),(/2/))) 
  write(*,*) lbound(merge(i,i,.true.)), ubound(merge(i,i,.true.))

end


The results for all write statements below the second comment are off.


-- 


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


  parent reply	other threads:[~2006-10-09 11:39 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-08 20:55 [Bug fortran/29391] New: " fxcoudert at gcc dot gnu dot org
2006-10-08 21:09 ` [Bug fortran/29391] " fxcoudert at gcc dot gnu dot org
2006-10-09 11:39 ` fxcoudert at gcc dot gnu dot org [this message]
2006-10-10  7:31 ` fxcoudert at gcc dot gnu dot org
2006-10-10 19:36 ` pault at gcc dot gnu dot org
2006-10-10 22:04 ` fxcoudert at gcc dot gnu dot org
2006-10-11  6:11 ` paulthomas2 at wanadoo dot fr
2006-10-11  7:27 ` fxcoudert at gcc dot gnu dot org
2006-10-11  7:32 ` fxcoudert at gcc dot gnu dot org
2006-10-11  8:02 ` paulthomas2 at wanadoo dot fr
2006-10-12 11:16 ` fxcoudert at gcc dot gnu dot org
2006-10-12 13:15 ` fxcoudert at gcc dot gnu dot org
2006-10-12 15:57 ` paulthomas2 at wanadoo dot fr
2006-10-13 12:20 ` fxcoudert at gcc dot gnu dot org
2006-10-13 12:24 ` [Bug fortran/29391] [4.1 only] LBOUND and UBOUND are broken fxcoudert at gcc dot gnu dot org
2006-10-17 10:45 ` fxcoudert at gcc dot gnu dot org
2006-10-22  4:47 ` [Bug fortran/29391] " pault at gcc dot gnu dot org
2006-11-16 12:25 ` fxcoudert at gcc dot gnu dot org
2006-11-16 23:56 ` [Bug fortran/29391] [4.2/4.1 only] " fxcoudert at gcc dot gnu dot org
2006-11-24 22:26 ` fxcoudert at gcc dot gnu dot org
2006-11-24 22:45 ` fxcoudert at gcc dot gnu dot org
2006-11-24 22:46 ` fxcoudert at gcc dot gnu dot org
2006-12-01  2:04 ` chaoyingfu 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=20061009113905.4109.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).