summaryrefslogtreecommitdiff
path: root/perly.tab
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-06-29 12:41:21 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-06-29 22:20:12 -0700
commit4a273b91c8e47ab37c6dd310072403d4fe2d0fb9 (patch)
treed6a0d09ab56dcddf2bb5ffee0858f5dfb7820653 /perly.tab
parent61984ee1c56aaa8a989b7eed4cbc2effd74177c5 (diff)
downloadperl-4a273b91c8e47ab37c6dd310072403d4fe2d0fb9.tar.gz
Don’t crash with formats in special blocks
Commit 421f30ed1e9 didn’t go far enough. If a special block happens to replace a stub, then a format trying to close over variables in the special block will be pointing to the wrong outer sub. Such stubs shouldn’t usually happen, but perl shouldn’t crash.
Diffstat (limited to 'perly.tab')
-rw-r--r--perly.tab6
1 files changed, 3 insertions, 3 deletions
diff --git a/perly.tab b/perly.tab
index 86cc024a86..309d5d9b82 100644
--- a/perly.tab
+++ b/perly.tab
@@ -223,9 +223,9 @@ static const char *const yytname[] =
"':'", "DORDOR", "OROR", "ANDAND", "BITOROP", "BITANDOP", "SHIFTOP",
"MATCHOP", "'!'", "'~'", "REFGEN", "UMINUS", "POWOP", "POSTDEC",
"POSTINC", "PREDEC", "PREINC", "ARROW", "')'", "'('", "PEG", "$accept",
- "grammar", "$@1", "$@2", "$@3", "$@4", "$@5", "$@6", "block", "remember",
+ "grammar", "@1", "@2", "@3", "@4", "@5", "@6", "block", "remember",
"mydefsv", "mblock", "mremember", "stmtseq", "fullstmt", "labfullstmt",
- "barestmt", "$@7", "$@8", "sideff", "else", "cont", "mintro", "nexpr",
+ "barestmt", "@7", "@8", "sideff", "else", "cont", "mintro", "nexpr",
"texpr", "iexpr", "mexpr", "mnexpr", "miexpr", "formname", "startsub",
"startanonsub", "startformsub", "subname", "proto", "subattrlist",
"myattrlist", "subbody", "expr", "listexpr", "listop", "@9", "method",
@@ -1089,6 +1089,6 @@ static const toketypes yy_type_tab[] =
};
/* Generated from:
- * 27cce68ad4844f1b8053bfc11206fb9f559e08be6cefd4a986aaa606c0e5fb38 perly.y
+ * efdb10e4176c622005697eec1ff496d913ef986c5297086baa5088bbd3aedaf2 perly.y
* 38f866dcd8341ad3c0810347587113eb2c6ac7d4f33bdab75b020efce92865be regen_perly.pl
* ex: set ro: */