diff options
author | Nicholas Clark <nick@ccl4.org> | 2021-09-15 08:27:22 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2021-09-18 08:00:49 +0000 |
commit | 7ebc59cd46fc3a16a5785f6a7235a7ee8126aabd (patch) | |
tree | beb4c1cbcd698ad89a8caa14931b7c71822d6cba /op.c | |
parent | 5fe711cbde7af4233fdb3a13af2208edc2096624 (diff) | |
download | perl-7ebc59cd46fc3a16a5785f6a7235a7ee8126aabd.tar.gz |
Prefix "unexpected constant lvalue entersub" with "panic: "
In Sep 1999 commit cd06dffe59d6 added various "internal error" croak()s:
initial implementation of lvalue subroutines (slightly fixed
version of patch suggested by Ilya Zakharevich, which in turn
is based on the one suggested by Tuomas J. Lukka <lukka@iki.fi>)
One was "panic: unexpected lvalue entersub entry via type/targ %ld:%ld"
Another "Unexpected constant lvalue entersub entry via type/targ %ld:%ld"
Prefix the latter with "panic: " to make it consistent.
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4347,7 +4347,7 @@ Perl_op_lvalue_flags(pTHX_ OP *o, I32 type, U32 flags) kid = kUNOP->op_first; if (kid->op_type == OP_NULL) Perl_croak(aTHX_ - "Unexpected constant lvalue entersub " + "panic: unexpected constant lvalue entersub " "entry via type/targ %ld:%" UVuf, (long)kid->op_type, (UV)kid->op_targ); if (kid->op_type != OP_GV) { |