[Patch, Fortran, F03] PR 77501: ICE in gfc_match_generic, at fortran/decl.c:9429
Janus Weil
janus@gcc.gnu.org
Fri Nov 11 14:05:00 GMT 2016
2016-11-11 14:38 GMT+01:00 Janus Weil <janus@gcc.gnu.org>:
> [Btw, speaking of gfc_get_tbp_symtree: Can anyone tell me by chance
> why it is necessary to nullify 'result->n.tb' on a newly-created
> symtree?]
Removing the corresponding line does not do any harm to the testsuite,
as I just verified:
Index: gcc/fortran/class.c
===================================================================
--- gcc/fortran/class.c (Revision 242066)
+++ gcc/fortran/class.c (Arbeitskopie)
@@ -2970,7 +2970,6 @@ gfc_get_tbp_symtree (gfc_symtree **root, const cha
{
result = gfc_new_symtree (root, name);
gcc_assert (result);
- result->n.tb = NULL;
}
return result;
After all, n.tb should anyway be NULL in a symtree we just created,
right? So is it ok to remove that?
Cheers,
Janus
More information about the Fortran
mailing list