[Bug fortran/94030] ICE equivalence of an integer and an element of an array of size n

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 4 14:43:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94030

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2020-03-04
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |tkoenig at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started to ICE with r6-635-g9b7df66f80888ba9, before that the code was rejected
with:

   integer :: arr(n)
                 1
Error: Variable ‘n’ at (1) in this context must be constant
pr94030.f90:5:17:

   equivalence (i, arr(1))
                 1
Error: Array ‘arr’ at (1) with non-constant bounds cannot be an EQUIVALENCE
object


More information about the Gcc-bugs mailing list