[PATCH, committed] PR fortran/103609 - [11/12 Regression] ICE in gfc_sym_get_dummy_args, at fortran/symbol.c:5243
Harald Anlauf
anlauf@gmx.de
Wed Dec 8 20:21:21 GMT 2021
Dear all,
the attached patch fixes a NULL pointer dereference for a missed
declaration of a dummy argument or a conflict of a procedure with
another decl.
Committed as obvious after regtesting on x86_64-pc-linux-gnu:
commit r12-5847-gb77968a70537429b4f548f90c369d26e6b6943cc
Author: Harald Anlauf <anlauf@gmx.de>
Date: Wed Dec 8 21:14:19 2021 +0100
Fortran: avoid NULL pointer dereference on missing or bad dummy arguments
gcc/fortran/ChangeLog:
PR fortran/103609
* symbol.c (gfc_sym_get_dummy_args): Catch NULL pointer
dereference.
gcc/testsuite/ChangeLog:
PR fortran/103609
* gfortran.dg/pr103609.f90: New test.
Thanks,
Harald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr103609.diff
Type: text/x-patch
Size: 1567 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20211208/4901e644/attachment.bin>
More information about the Fortran
mailing list