summaryrefslogtreecommitdiff
path: root/perly.act
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-04-18 10:42:17 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-04-18 10:42:17 +0000
commitf6f3a1fea2bda9d33f9cc5367b630a21738c9def (patch)
treed113d69c2395fb2e70865ba53b0fd509fb2de441 /perly.act
parent12e06b6fd7025de6faae2a6f788653cc97790444 (diff)
downloadperl-f6f3a1fea2bda9d33f9cc5367b630a21738c9def.tar.gz
Fix the line-number-in-elsif longstanding bug.
This patch does two things : - newSTATEOP now nullifies the state op it just created if OPf_SPECIAL is passed to it in flags - the parser now inserts a nullified stateop in the expression block of an elsif p4raw-id: //depot/perl@33710
Diffstat (limited to 'perly.act')
-rw-r--r--perly.act2
1 files changed, 1 insertions, 1 deletions
diff --git a/perly.act b/perly.act
index 4ff627cc05..8df8e3c338 100644
--- a/perly.act
+++ b/perly.act
@@ -186,7 +186,7 @@ case 2:
case 27:
#line 277 "perly.y"
{ PL_parser->copline = (line_t)IVAL((ps[(1) - (6)].val.i_tkval));
- (yyval.opval) = newCONDOP(0, (ps[(3) - (6)].val.opval), scope((ps[(5) - (6)].val.opval)), (ps[(6) - (6)].val.opval));
+ (yyval.opval) = newCONDOP(0, newSTATEOP(OPf_SPECIAL,NULL,(ps[(3) - (6)].val.opval)), scope((ps[(5) - (6)].val.opval)), (ps[(6) - (6)].val.opval));
PL_hints |= HINT_BLOCK_SCOPE;
TOKEN_GETMAD((ps[(1) - (6)].val.i_tkval),(yyval.opval),'I');
TOKEN_GETMAD((ps[(2) - (6)].val.i_tkval),(yyval.opval),'(');