trans-expr.c (get_proc_ptr_comp): Restore initial expression type before calling gfc_free_expr.

2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

	* trans-expr.c (get_proc_ptr_comp): Restore initial expression type
	before calling gfc_free_expr.

From-SVN: r165048
This commit is contained in:
Mikael Morin 2010-10-06 16:11:23 +00:00
parent c12ee5df35
commit 3231fe9002
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
* trans-stmt.c (gfc_trans_forall_1): Free forall struct at the end.
2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
* trans-expr.c (get_proc_ptr_comp): Restore initial expression type

View File

@ -3462,6 +3462,13 @@ gfc_trans_forall_1 (gfc_code * code, forall_info * nested_forall_info)
gfc_free (varexpr);
gfc_free (saved_vars);
for (this_forall = info->this_loop; this_forall;)
{
iter_info *next = this_forall->next;
gfc_free (this_forall);
this_forall = next;
}
/* Free the space for this forall_info. */
gfc_free (info);