Mercurial > octave
diff libinterp/octave-value/ov-range.cc @ 33362:2949b89f9711
replace most uses of panic_impossible with error in octave_value classes
* ov-base-diag.cc, ov-base-mat.cc, ov-base-scalar.cc,
ov-base-sparse.cc, ov-base.cc, ov-bool-mat.cc, ov-cell.cc,
ov-class.cc, ov-cx-mat.cc, ov-fcn-handle.cc, ov-flt-cx-mat.cc,
ov-flt-re-mat.cc, ov-perm.cc, ov-range.cc, ov-re-mat.cc,
ov-str-mat.cc, ov-struct.cc, ov-usr-fcn.cc: Replace all uses of
panic_impossible with error.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 08 Apr 2024 19:39:34 -0400 |
parents | 2e484f9f1f18 |
children |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-range.cc Mon Apr 08 19:39:04 2024 -0400 +++ b/libinterp/octave-value/ov-range.cc Mon Apr 08 19:39:34 2024 -0400 @@ -163,7 +163,7 @@ break; default: - panic_impossible (); + error ("unexpected: index not '(', '{', or '.' in ov_range<T>::subsref - please report this bug"); } return retval.next_subsref (type, idx);