public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/37749]  New: ICE on array section with vector subscript
@ 2008-10-06 14:04 jakub at gcc dot gnu dot org
  2008-10-06 19:48 ` [Bug fortran/37749] " burnus at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-10-06 14:04 UTC (permalink / raw)
  To: gcc-bugs

subroutine subr (m, n, a, b, c, d, p)
  implicit none
  integer m, n
  real a(m,n), b(m,n), c(n,n), d(m,n)
  integer p(n)
  d = a(:,p) - matmul(b, c)
end subroutine

  implicit none
  integer i
  real a(3,2), b(3,2), c(2,2), d(3,2)
  integer p(2)
  a = reshape ((/(i, i = 1, 6)/), (/3, 2/))
  b = 1
  c = 2
  p = 2
  call subr (3, 2, a, b, c, d, p)
  if (any (d .ne. reshape ((/(mod (i + 2, 3), i = 1, 6)/), (/3, 2/)))) call
abort
end

ICEs because a loop bound (loop->to[0]) hasn't been set.


-- 
           Summary: ICE on array section with vector subscript
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-11-01 19:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-06 14:04 [Bug fortran/37749] New: ICE on array section with vector subscript jakub at gcc dot gnu dot org
2008-10-06 19:48 ` [Bug fortran/37749] " burnus at gcc dot gnu dot org
2008-10-29 21:00 ` mikael dot morin at tele2 dot fr
2008-10-29 21:06 ` mikael dot morin at tele2 dot fr
2008-10-30 11:13 ` 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:49 ` pault at gcc dot gnu dot org

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