ICE on wrong code [PR94192].
authorLinus Koenig <link@sig-st.de>
Mon, 13 Apr 2020 14:30:44 +0000 (16:30 +0200)
committerThomas König <tkoenig@gcc.gnu.org>
Mon, 13 Apr 2020 14:32:38 +0000 (16:32 +0200)
commitefbf7392079222ef00db2d39998faf5513055181
tree0a4017806092556e4a00f0199d04f98abd8883da
parent8d213cbbe1856e6088282aa0076646cec694b030
ICE on wrong code [PR94192].

The idea is not have another resolution of a pointer if an error has
occurred previously.

2020-04-13  Linus Koenig <link@sig-st.de>

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-13  Linus Koenig <link@sig-st.de>

PR fortran/94192
* gfortran.dg/bound_resolve_after_error_1.f90: New test.
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/fortran/simplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bound_resolve_after_error_1.f90 [new file with mode: 0644]