[Bug fortran/95374] ICE: gfc_array_size failed

anlauf at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jun 5 21:38:32 GMT 2020


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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-valid-code           |accepts-invalid,
                   |                            |ice-on-invalid-code
           Priority|P3                          |P4
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-06-05
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from anlauf at gcc dot gnu.org ---
Example z2.f90 is actually invalid code that is not rejected,
since the rhs takes element a(0) which is out-of-bounds, has size 1,
whereas the lhs has size 0.

For the same reason, z1.f90 is invalid code since it accesses a(0).


More information about the Gcc-bugs mailing list