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. Mikael