Message ID | 5AB2C329.9000003@gmx.de |
---|---|
State | New |
Headers | show |
Series | [fortran] PR84957 - [8 Regression] ICE in gfc_sym_type, at fortran/trans-types.c:2255 | expand |
Hi Harald, > The attached obvious patch fixes a NULL pointer dereference. > Testcase derived from report. Changelogs below. > > Regtested on i686-pc-linux-gnu. > > Whoever reviews this, please feel free to commit. Reviewed and committed as r258745. Thanks for the patch! Regards Thomas
Index: gcc/fortran/trans-types.c =================================================================== --- gcc/fortran/trans-types.c (revision 258740) +++ gcc/fortran/trans-types.c (working copy) @@ -2252,6 +2252,7 @@ && sym->ts.type == BT_CHARACTER && sym->ts.u.cl->backend_decl == NULL_TREE && sym->ns->proc_name + && sym->ns->proc_name->ts.u.cl && sym->ns->proc_name->ts.u.cl->backend_decl != NULL_TREE) sym->ts.u.cl->backend_decl = sym->ns->proc_name->ts.u.cl->backend_decl;