Mercurial > octave-nkf
diff libinterp/parse-tree/pt-check.cc @ 17577:c702371ff6df classdef
maint: periodic merge of default to classdef
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 05 Oct 2013 11:22:09 -0400 |
parents | a8f9eb92fa6e 923ce8b42db2 |
children | 93b3d03b05e7 |
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-check.cc Thu Sep 12 21:08:07 2013 -0400 +++ b/libinterp/parse-tree/pt-check.cc Sat Oct 05 11:22:09 2013 -0400 @@ -504,6 +504,15 @@ { tree_statement_list *try_code = cmd.body (); + tree_identifier *expr_id = cmd.identifier (); + + if (expr_id) + { + if (! expr_id->lvalue_ok ()) + gripe ("invalid lvalue used for identifier in try-catch command", + cmd.line ()); + } + if (try_code) try_code->accept (*this);