Mercurial > octave
diff libinterp/parse-tree/pt-cmd.h @ 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 | d422992b5483 |
children |
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-cmd.h Fri Apr 12 11:17:04 2024 -0400 +++ b/libinterp/parse-tree/pt-cmd.h Fri Apr 12 11:15:32 2024 -0400 @@ -52,7 +52,10 @@ virtual ~tree_command () = default; - virtual void update_end_pos (const filepos&) { panic_impossible (); } + virtual void update_end_pos (const filepos&) + { + error ("unexpected call to tree_command::update_end_pos - please report this bug"); + } }; // No-op. @@ -77,7 +80,7 @@ if (is_end_of_fcn_or_script () || is_end_of_file ()) m_tok.end_pos (pos); else - panic_impossible (); + error ("unexpected call to tree_no_op_command::update_end_pos - please report this bug"); } comment_list leading_comments () const { return m_tok.leading_comments (); }