changeset 22712:e07fa946f763 stable

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.
author Rik <rik@octave.org>
date Thu, 03 Nov 2016 08:24:10 -0700
parents 413a19bca7f3
children 9e415e57a6a7
files libinterp/parse-tree/oct-parse.in.yy
diffstat 1 files changed, 1 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }