comparison 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
comparison
equal deleted inserted replaced
33381:6f7fe3f85253 33382:79cfa1b7a813
180 octave_value t = df->evaluate (tw); 180 octave_value t = df->evaluate (tw);
181 181
182 fn = t.xstring_value ("dynamic structure field names must be strings"); 182 fn = t.xstring_value ("dynamic structure field names must be strings");
183 } 183 }
184 else 184 else
185 panic_impossible (); 185 error ("unexpected: DF is nullptr in call to tree_index_expression::get_struct_index - please report this bug");
186 } 186 }
187 187
188 return fn; 188 return fn;
189 } 189 }
190 190
243 idx.push_back (tidx); 243 idx.push_back (tidx);
244 } 244 }
245 break; 245 break;
246 246
247 default: 247 default:
248 panic_impossible (); 248 error ("unexpected: index not '(', '{', or '.' in tree_index_expression::lvalue - please report this bug");
249 } 249 }
250 250
251 if (idx.back ().empty ()) 251 if (idx.back ().empty ())
252 error ("invalid empty index list"); 252 error ("invalid empty index list");
253 253
607 idx_list.push_back (tmp); 607 idx_list.push_back (tmp);
608 } 608 }
609 break; 609 break;
610 610
611 default: 611 default:
612 panic_impossible (); 612 error ("unexpected: index not '(', '{', or '.' in tree_index_expression::evaluate_n - please report this bug");
613 } 613 }
614 614
615 p_args++; 615 p_args++;
616 p_arg_nm++; 616 p_arg_nm++;
617 p_dyn_field++; 617 p_dyn_field++;