ICE on wrong code [PR94192]

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

ICE on wrong code [PR94192]

Linus König
Hi all,

I'm new to gcc and this is my first patch. The idea is not have another
resolution of a pointer if an error has occurred previously. I hope this
meets all the criteria for a patch. In case anything is missing or
wrong, I'm open to add to or change the patch.

Best regards,

Linus König

2020-04-06  Linus Koenig <[hidden email]>

     PR fortran/94192
     * resolve.c (resolve_fl_var_and_proc): Set flag "error" to 1 if
     pointer is found to not have an assumed rank or a deferred shape.
     * simplify.c (simplify_bound): If an error has been issued for a
     given pointer, one should not attempt to find its bounds.

2020-04-06  Linus Koenig <[hidden email]>

     PR fortran/94192
     * gfortran.dg/bound_resolve_after_error_1.f90: New test.

PR94192.txt (1K) Download Attachment
bound_resolve_after_error_1.f90 (456 bytes) Download Attachment