diff libinterp/parse-tree/pt-eval.cc @ 28526:1151ed869686

maint: merge stable to default.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Thu, 02 Jul 2020 15:11:19 +0900
parents b8ab8b58547d 286fe9352cd6
children 05a48a241da6
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-eval.cc	Wed Jul 01 15:33:53 2020 -0400
+++ b/libinterp/parse-tree/pt-eval.cc	Thu Jul 02 15:11:19 2020 +0900
@@ -1776,7 +1776,9 @@
                 for (octave_idx_type i = 0; i < tmp_ovl.length (); i++)
                   args.push_back (tmp_ovl(i));
               }
-            else if (tmp.is_defined ())
+            else if (! tmp.is_defined ())
+              error ("Element %d in argument list is not defined", k + 1);
+            else
               args.push_back (tmp);
           }
         else