Mercurial > octave
diff libinterp/parse-tree/pt-idx.cc @ 33382:79cfa1b7a813
replace nearly all remaining uses of panic_impossible with error
Affected files: data.cc, error.cc, find.cc, graphics.in.h, ls-hdf5.cc,
oct-hist.cc, oct-stream.cc, pr-output.cc, quad.cc, __init_fltk__.cc,
cdef-class.cc, cdef-utils.cc, ov.h, octave.cc, pt-anon-scopes.cc,
pt-array-list.cc, pt-assign.cc, pt-cmd.h, pt-eval.cc, pt-idx.cc,
pt-stmt.cc, pt-walk.cc, and Sparse.cc.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 12 Apr 2024 11:15:32 -0400 |
parents | 56d234504c01 |
children | 96e9dcdc4003 |
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-idx.cc Fri Apr 12 11:17:04 2024 -0400 +++ b/libinterp/parse-tree/pt-idx.cc Fri Apr 12 11:15:32 2024 -0400 @@ -182,7 +182,7 @@ fn = t.xstring_value ("dynamic structure field names must be strings"); } else - panic_impossible (); + error ("unexpected: DF is nullptr in call to tree_index_expression::get_struct_index - please report this bug"); } return fn; @@ -245,7 +245,7 @@ break; default: - panic_impossible (); + error ("unexpected: index not '(', '{', or '.' in tree_index_expression::lvalue - please report this bug"); } if (idx.back ().empty ()) @@ -609,7 +609,7 @@ break; default: - panic_impossible (); + error ("unexpected: index not '(', '{', or '.' in tree_index_expression::evaluate_n - please report this bug"); } p_args++;