PING [PATCH] PR fortran/95502 - ICE in gfc_check_do_variable, at fortran/parse.c:4446

Harald Anlauf anlauf@gmx.de
Fri Jun 11 18:41:23 GMT 2021


*PING*

BTW this patch also addresses PR95501, so I'll update the Changelog.

Thanks,
Harald

> Gesendet: Freitag, 04. Juni 2021 um 23:12 Uhr
> Von: "Harald Anlauf" <anlauf@gmx.de>
> An: "fortran" <fortran@gcc.gnu.org>, "gcc-patches" <gcc-patches@gcc.gnu.org>
> Betreff: [PATCH] PR fortran/95502 - ICE in gfc_check_do_variable, at fortran/parse.c:4446
>
> ICE-on-invalid issues during error recovery.  Testcase by Gerhard,
> initial patch by Steve.  I found another variant which needed an
> additional fix for a NULL pointer dereference.
>
> Regtested on x86_64-pc-linux-gnu.
>
> OK for mainline / 11-branch?
>
> Thanks,
> Harald
>
>
> Fortran - ICE in gfc_check_do_variable, at fortran/parse.c:4446
>
> Avoid NULL pointer dereferences during error recovery.
>
> gcc/fortran/ChangeLog:
>
> 	PR fortran/95502
> 	* expr.c (gfc_check_pointer_assign): Avoid NULL pointer
> 	dereference.
> 	* match.c (gfc_match_pointer_assignment): Likewise.
> 	* parse.c (gfc_check_do_variable): Avoid comparison with NULL
> 	symtree.
>
> gcc/testsuite/ChangeLog:
>
> 	PR fortran/95502
> 	* gfortran.dg/pr95502.f90: New test.
>
>


More information about the Gcc-patches mailing list