[Patch, fortran] PR17741 - ICE in gfc_free_namespace, at fortran/symbol.c:2208
Paul Thomas
paulthomas2@wanadoo.fr
Fri May 12 19:02:00 GMT 2006
Paul,
>Fix the bug properly then.
>
>
Therein lies the rub - too many bugs and too few of us.
I grant you all that you have said, with respect to other users of
gfc_free_namespace, but would point out that hitting an eof is a special
and unusual situation. That being the case, would it be acceptable to
you that unexpected_eof checks for the namespace having no references
before calling gfc_done_2 (which is the unique client of
gfc_symbol_done_2)? That is to say, we scrub whatever is there, or not,
as cleanly as possible because there is no more input and the requisite
error messages have been emitted anyway.
As for the message that nobody likes; that can be dispensed with
completely because it is redundant, as several of you have pointed out.
Paul
More information about the Gcc-patches
mailing list