Mercurial > octave-dspies
diff src/parse.y @ 8282:47a3d2f829e4
clear local symbol table after parsing function
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 28 Oct 2008 13:01:58 -0400 |
parents | 283989f2da9b |
children | 54c25dc5b17d |
line wrap: on
line diff
--- a/src/parse.y Tue Oct 28 12:33:45 2008 -0400 +++ b/src/parse.y Tue Oct 28 13:01:58 2008 -0400 @@ -2618,6 +2618,11 @@ retval = new tree_function_def (fcn); } + + // Clear any local variables that may have been added by + // while parsing (for example, by force_local_variable in lex.l). + + symbol_table::clear_variables (fcn->scope ()); } return retval;