develooper Front page | perl.perl5.changes | Postings from March 2023

[Perl/perl5] d12e56: mg.c - fix $+ combined with branch reset

From:
Yves Orton via perl5-changes
Date:
March 8, 2023 12:02
Subject:
[Perl/perl5] d12e56: mg.c - fix $+ combined with branch reset
Message ID:
Perl/perl5/push/refs/heads/yves/fix_dollar_plus_branch_reset/000000-d12e56@github.com
  Branch: refs/heads/yves/fix_dollar_plus_branch_reset
  Home:   https://github.com/Perl/perl5
  Commit: d12e56fbe6b2ad68cc10b10b6ba43fa07e983d77
      https://github.com/Perl/perl5/commit/d12e56fbe6b2ad68cc10b10b6ba43fa07e983d77
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M mg.c
    M t/re/re_tests

  Log Message:
  -----------
  mg.c - fix $+ combined with branch reset

I missed that $+ needs to do the parno_to_logical lookup.
We had tests for $^N, but not $+. This also fixes the code
for $^N to only do the lookup when the paren is not 0.

Fixes #20912





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About