summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-10-15 07:30:58 -0600
committerKarl Williamson <khw@cpan.org>2020-10-15 07:47:16 -0600
commit6fc5487b6505404743d354980d786d2a80868c0c (patch)
tree97e055b1cadb4b4328125e04a23ff3714a59da47 /regcomp.c
parent5d5b9c460e2a06563d2b5e35a1a79991460696eb (diff)
downloadperl-6fc5487b6505404743d354980d786d2a80868c0c.tar.gz
regcomp.c: Zero width constructs shouldn't be SIMPLE
This is reserved for length-1 constructs.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/regcomp.c b/regcomp.c
index a5fdcc4c54..b0027bfc75 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -13609,7 +13609,6 @@ S_regatom(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth)
/* SBOL is shared with /^/ so we set the flags so we can tell
* /\A/ from /^/ in split. */
FLAGS(REGNODE_p(ret)) = 1;
- *flagp |= SIMPLE; /* Wrong, but too late to fix for 5.32 */
}
goto finish_meta_pat;
case 'G':
@@ -13646,7 +13645,6 @@ S_regatom(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth)
}
else {
ret = reg_node(pRExC_state, SEOL);
- *flagp |= SIMPLE; /* Wrong, but too late to fix for 5.32 */
}
RExC_seen_zerolen++; /* Do not optimize RE away */
goto finish_meta_pat;
@@ -13657,7 +13655,6 @@ S_regatom(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth)
}
else {
ret = reg_node(pRExC_state, EOS);
- *flagp |= SIMPLE; /* Wrong, but too late to fix for 5.32 */
}
RExC_seen_zerolen++; /* Do not optimize RE away */
goto finish_meta_pat;