Branch: refs/heads/yves/fix_accept_in_curlyx_whilem
Home: https://github.com/Perl/perl5
Commit: 5516858e550ce829d274b8c5661a2a10844fa345
https://github.com/Perl/perl5/commit/5516858e550ce829d274b8c5661a2a10844fa345
Author: Yves Orton <[email protected]>
Date: 2023-01-14 (Sat, 14 Jan 2023)
Changed paths:
M regexec.c
M t/re/pat_re_eval.t
M t/re/regexp.t
Log Message:
-----------
regexec.c - fix accept in CURLYX/WHILEM construct.
The ACCEPT logic didnt know how to handle WHILEM, which for
some reason does not have a next_off defined. I am not sure why.
This was revealed by forcing CURLYX optimisations off. This includes
a patch to test what happens if we embed an eval group in the tests
run by regexp.t when run via regexp_normal.t, which disabled CURLYX ->
CURLYN and CURLYM optimisations and revealed this issue.