diff libinterp/parse-tree/oct-lvalue.cc @ 33345:56d234504c01

eliminate some uses of panic_* functions Replace all uses of panic_* functions that result in compiler warnings when compiling with NDEBUG with calls to error instead. Files affected: graphics.cc, mex.cc, stack-frame.cc, ov-base-mat.cc, ov-fcn.cc, ov.cc, ops.h, lex.ll, oct-lvalue.cc, pt-idx.cc, and Array-util.cc.
author John W. Eaton <jwe@octave.org>
date Sat, 06 Apr 2024 17:11:35 -0400
parents 2e484f9f1f18
children
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-lvalue.cc	Sat Apr 06 14:38:17 2024 -0400
+++ b/libinterp/parse-tree/oct-lvalue.cc	Sat Apr 06 17:11:35 2024 -0400
@@ -168,7 +168,7 @@
       break;
 
     default:
-      panic_impossible ();
+      error ("unexpected: index not '(', '{', or '.' in octave_lvalue::numel - please report this bug");
     }
 }