Commit 4ef9b950 by Mikael Morin

symbol.c (restore_old_symbol): Fix thinko.

fortran/
	* symbol.c (restore_old_symbol): Fix thinko.

From-SVN: r196413
parent 718e305d
2013-03-03 Mikael Morin <mikael@gcc.gnu.org>
* symbol.c (restore_old_symbol): Fix thinko.
2013-03-03 Mikael Morin <mikael@gcc.gnu.org>
* symbol.c (gfc_undo_symbols): Move code...
(restore_old_symbol): ... here as a new function.
......
......@@ -2896,7 +2896,8 @@ restore_old_symbol (gfc_symbol *p)
if (p->value != old->value)
{
gfc_free_expr (old->value);
gcc_checking_assert (old->value == NULL);
gfc_free_expr (p->value);
p->value = NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment