[Bug fortran/21409] Attached fortran 95 code generates error

kargl at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat May 7 03:33:00 GMT 2005


------- Additional Comments From kargl at gcc dot gnu dot org  2005-05-07 03:33 -------
(In reply to comment #2)
> 
> But note I get a warning with ICC:
> fortcom: Warning: t.f, line 8: All active combinations of index-names are not
used within the variable 
> being defined (i.e., leftside) of this assignment-stmt.   [AMS]
>          ams(1:ngmax)= edd(j-1)
> .........^
> 
> So I don't know if this code is valid or not.

I believe the code is valid.  At least, NAG's compiler codes the 
code with a warning because edd is never set.  Lahey's web base
source checker also compiles the code with the same warning.



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list