This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Possible patch for PR fortran/66056
- From: FX <fxcoudert at gmail dot com>
- To: Louis Krupp <louis dot krupp at zoho dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, fortran <fortran at gcc dot gnu dot org>
- Date: Mon, 26 Oct 2015 09:51:04 +0100
- Subject: Re: Possible patch for PR fortran/66056
- Authentication-results: sourceware.org; auth=none
- References: <150a1e6a0b7 dot cab0bdc164391 dot 7983815013798427754 at zoho dot com>
> The problem: Statement labels within a type declaration are put in the statement label tree belonging to the type declaration's namespace's (instead of the current namespace). When the line is otherwise empty and an error is issued, gfc_free_st_label tries to delete the label from the label tree belonging to the current namespace and then frees the label structure, leaving an invalid statement label pointer in the type declaration's namespace's label tree. When that namespace is cleaned up, bad things can happen.
Seems OK.
Please post patches with full ChangeLog entry, stating how they were tested (âbootstraped and regtested on x86_64-linuxâ, for example). And of course, do an actual full regression-test :)
If that was done, then OK to commit.
Thanks,
FX