[Bug fortran/108609] New test case gfortran.dg/pr108527.f90 in r13-5479-g22afa4947584c7 ICEs

anlauf at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 31 19:19:18 GMT 2023


anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
   Last reconfirmed|                            |2023-01-31
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |anlauf at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from anlauf at gcc dot gnu.org ---
Created attachment 54377
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54377&action=edit


can you please try the attached patch?

It adds a check in find_array_section to prevent interpreting an mpz
non-integer constant as an integer.  This should provide a cleaner
error recovery.

Regtested on x86_64-pc-linux-gnu.

And thanks for the traceback.  valgrind did not show anything.

More information about the Gcc-bugs mailing list