public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/29400]  New: ANY and COUNT used on parameter arrays
@ 2006-10-09 11:53 fxcoudert at gcc dot gnu dot org
  2006-10-09 11:53 ` [Bug fortran/29400] " fxcoudert at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-10-09 11:53 UTC (permalink / raw)
  To: gcc-bugs

I found that bug while reducing PR29391, so it might be related (but I doubt
it).

$ cat a6.f90 
  integer,parameter :: i(1,1) = 0

  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))
end
$ gfortran a6.f90 && ./a.out
Operating system error: Cannot allocate memory
Memory allocation failed

If I remove the line with matmul, I get another error:

$ gfortran a6.f90 && ./a.out
           0           1
           0           1
zsh: segmentation fault  ./a.out


-- 
           Summary: ANY and COUNT used on parameter arrays
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org


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


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

end of thread, other threads:[~2007-05-07  7:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-09 11:53 [Bug fortran/29400] New: ANY and COUNT used on parameter arrays fxcoudert at gcc dot gnu dot org
2006-10-09 11:53 ` [Bug fortran/29400] " fxcoudert at gcc dot gnu dot org
2006-10-09 12:36 ` fxcoudert at gcc dot gnu dot org
2006-10-09 12:44 ` fxcoudert at gcc dot gnu dot org
2007-02-06 12:26 ` fxcoudert at gcc dot gnu dot org
2007-02-06 13:42 ` fxcoudert at gcc dot gnu dot org
2007-05-07  7:59 ` [Bug fortran/29400] constant arrays as intrinsic arguments lead to ICE 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).