# HG changeset patch # User Rik # Date 1478186650 25200 # Node ID e07fa946f7631c89cda700bbaff9f3197b1ca247 # Parent 413a19bca7f37082e042a5add7e13a9afee17163 Fix regression in feval and emit an error when function does not exist (bug #49516). * oct-parse.in.yy (feval): If fcn is not defined, call error() rather than trying maybe_missing_function_hook which does not produce warning or return a status code if function does not exist. diff -r 413a19bca7f3 -r e07fa946f763 libinterp/parse-tree/oct-parse.in.yy --- a/libinterp/parse-tree/oct-parse.in.yy Tue Nov 01 16:36:27 2016 -0400 +++ b/libinterp/parse-tree/oct-parse.in.yy Thu Nov 03 08:24:10 2016 -0700 @@ -4786,16 +4786,7 @@ if (fcn.is_defined ()) retval = fcn.do_multi_index_op (nargout, args); else - { - try - { - maybe_missing_function_hook (name); - } - catch (octave::execution_exception& e) - { - error (e, "feval: function '%s' not found", name.c_str ()); - } - } + error ("feval: function '%s' not found", name.c_str ()); return retval; }