[PATCH] Bail out in gfc_dep_compare_expr for a NULL argument.
Martin Liška
mliska@suse.cz
Tue Dec 10 13:04:00 GMT 2019
Hi.
The patch is about early bail out in gfc_dep_compare_expr function
when one of the arguments (and not both at the same time) is null.
I'm not sure, it's a proper fix however.
Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
Ready to be installed?
Thanks,
Martin
gcc/fortran/ChangeLog:
2019-12-10 Martin Liska <mliska@suse.cz>
PR fortran/92874
* dependency.c (gfc_dep_compare_expr): Bail out
when one of the arguments is null.
gcc/testsuite/ChangeLog:
2019-12-10 Martin Liska <mliska@suse.cz>
PR fortran/92874
* gfortran.dg/pr92874.f90: New test.
---
gcc/fortran/dependency.c | 2 ++
gcc/testsuite/gfortran.dg/pr92874.f90 | 11 +++++++++++
2 files changed, 13 insertions(+)
create mode 100644 gcc/testsuite/gfortran.dg/pr92874.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Bail-out-in-gfc_dep_compare_expr-for-a-NULL-argument.patch
Type: text/x-patch
Size: 812 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20191210/d874b831/attachment.bin>
More information about the Fortran
mailing list