This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/29400] ANY and COUNT used on parameter arrays



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]