From: Father Chrysostomos Date: Tue, 22 Nov 2011 22:18:57 +0000 (-0800) Subject: Correct perldiag entry for sv_replace panic X-Git-Tag: v5.15.6~374 X-Git-Url: https://perl5.git.perl.org/perl5.git/commitdiff_plain/ccfb6d2e1e8668ebdb5e565a5a30318555474624?hp=f84fe999df8300fda78977ddab0e5ba823ae3476;ds=sidebyside Correct perldiag entry for sv_replace panic This commit changed the warning to an error and reworded it, but never updated the docs (this commit completes the TODO): perl-5.8.0-5715-g30e5c35 commit 30e5c352c9c1099120007e8b6e9318a33d99b3bb Author: Nicholas Clark Date: Thu Aug 25 13:46:31 2005 +0000 Promote the warning about reference miscount in sv_replace to a panic. TODO - document the panics p4raw-id: //depot/perl@25330 --- diff --git a/pod/perldiag.pod b/pod/perldiag.pod index f143b67..725f77f 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -3556,6 +3556,11 @@ data. (P) Something requested a negative number of bytes of realloc. +=item panic: reference miscount on nsv in sv_replace() (%d != 1) + +(P) The internal sv_replace() function was handed a new SV with a +reference count other than 1. + =item panic: restartop (P) Some internal routine requested a goto (or something like it), and @@ -4006,11 +4011,6 @@ parens. In any case, a hash requires key/value B. (W misc) You have attempted to weaken a reference that is already weak. Doing so has no effect. -=item Reference miscount in sv_replace() - -(W internal) The internal sv_replace() function was handed a new SV with -a reference count other than 1. - =item Reference to invalid group 0 (F) You used C<\g0> or similar in a regular expression. You may refer to