This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29400] ANY and COUNT used on parameter arrays
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Feb 2007 12:25:46 -0000
- Subject: [Bug fortran/29400] ANY and COUNT used on parameter arrays
- References: <bug-29400-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from fxcoudert at gcc dot gnu dot org 2007-02-06 12:25 -------
> $ cat pr29400-3.f90
> integer,parameter :: i(1,1) = 0
> logical :: l
> l = any(i==1)
> end
> $ gfortran pr29400-3.f90 && ./a.out
> pr29400-3.f90: In function ?MAIN__?:
> pr29400-3.f90:1: internal compiler error: in gfc_conv_intrinsic_anyall, at
> fortran/trans-intrinsic.c:1339
Same thing happens for count. We try to walk the constant, and it doesn't work
(we fail on the next assert). dot_product works, while seemingly doing the same
thing, maybe we can borrow from it...
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2006-10-09 12:44:16 |2007-02-06 12:25:46
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29400