pr59016
Mikael Morin
mikael.morin@sfr.fr
Wed Apr 8 10:29:00 GMT 2015
Le 07/04/2015 14:25, Mikael Morin a écrit :
> Le 06/04/2015 20:26, Mikael Morin a écrit :
>> Regarding the patch, I don't understand why the existing symbol
>> restoration code doesn't work here (see
>> gfc_restore_last_undo_checkpoint, restore_old_symbol). I have to
>> investigate more.
>
> I think the problem is the usage of gfc_find_symbol in
> gfc_match_decl_type_spec.
> In opposition to the gfc_get_* family of functions, the gfc_find_*
> functions don't version symbols, so that changes made to the symbol are
> not thrown away when the statement is rejected.
>
So something like the following should be preferred over Evangelos' patch.
Except that the following ... ahem ... doesn't work.
Mikael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr59016_attempt.diff
Type: text/x-patch
Size: 1906 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20150408/26ac99ae/attachment.bin>
More information about the Fortran
mailing list