summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2021-09-15 08:27:22 +0000
committerNicholas Clark <nick@ccl4.org>2021-09-18 08:00:49 +0000
commit7ebc59cd46fc3a16a5785f6a7235a7ee8126aabd (patch)
treebeb4c1cbcd698ad89a8caa14931b7c71822d6cba /pod
parent5fe711cbde7af4233fdb3a13af2208edc2096624 (diff)
downloadperl-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 'pod')
-rw-r--r--pod/perldiag.pod10
1 files changed, 5 insertions, 5 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index fb7a028ecc..cc942328f5 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -4894,6 +4894,11 @@ was string.
(P) The compiler attempted to do a goto, or something weird like that.
+=item panic: unexpected constant lvalue entersub entry via type/targ %d:%d
+
+(P) When compiling a subroutine call in lvalue context, Perl failed an
+internal consistency check. It encountered a malformed op tree.
+
=item panic: unimplemented op %s (#%d) called
(P) The compiler is screwed up and attempted to use an op that isn't
@@ -6709,11 +6714,6 @@ within an inner pair of square brackets, like
Another possibility is that you forgot a backslash. Perl isn't smart
enough to figure out what you really meant.
-=item Unexpected constant lvalue entersub entry via type/targ %d:%d
-
-(P) When compiling a subroutine call in lvalue context, Perl failed an
-internal consistency check. It encountered a malformed op tree.
-
=item Unexpected exit %u
(S) exit() was called or the script otherwise finished gracefully when