[Patch, fortran] PR21459 - strings of different length in a single character(len=*) declaration
Paul Thomas
paulthomas2@wanadoo.fr
Thu Oct 13 06:06:00 GMT 2005
:ADDPATCH fortran:
Erik,
>> It seems that PR 21459 suffers from a very similar problem. Do
>> you think it would be hard to extend your patch to fix that one
>> as well?
>>
>
> Yes, it does look similar. In fact, I think that Tobi had the solution
> and that the memory leak can be fixed by ensuring that the charlen's
> are chained to the namespace's cl_list. I have marked it in huge
> letters at the top of today's journal entry. I'll look at it when.....
Tobi's fix was indeed OK and the memory leak is fixed by attaching the
gfc_charlen to the namespace's cl_list; thereby permitting
gfc_clear_namespace () to clean it up. The testcase is the original
example from the PR.
Bubblestrapped and regtested on FC3/i686. OK for mainline and 4.0?
Paul
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: submit_2.txt
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20051013/352fa840/attachment.txt>
More information about the Fortran
mailing list