Skip Menu |
Report information
Id: 132186
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cpan [at] zoffix.com
Cc:
AdminCc:

Severity: (no value)
Tag: regex
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [REGEX][PRECOMP] "getlex: outer index out of range" with precomped `constant` Regex
Download (untitled) / with headers
text/plain 574b
$ echo 'unit class Foo; constant $RT_RE = rx/« [RT]?"#"? <( <[0..9]>**{5..6} »/; method x ($e where $RT_RE) {say "in"}' > Foo.pm6 $ perl6 -I. -MFoo -e 'Foo.new.x: "R"' getlex: outer index out of range in regex at /tmp/tmp.pTHyHW456I/.precomp/0F8E2678B84A59BD14F72E830416039936204F36.1506252653.69083/20/201A6B3053CC1422D2C3670B62616221D2290929 line 1 in method x at /tmp/tmp.pTHyHW456I/Foo.pm6 (Foo) line 1 in block <unit> at -e line 1 $ perl6 -v This is Rakudo version 2017.09-84-gb02da4d built on MoarVM version 2017.09.1-32-g9749b0f implementing Perl 6.c.
I bisected it to https://github.com/rakudo/rakudo/commit/87288285f6f398ec7cba0900312ced4b580d79ed

The error is still there but different. See
https://gist.github.com/Whateverable/536231b535ec98403f2cc96a452dd5b1

Not sure if it helps though.

On 2017-09-29 17:01:40, cpan@zoffix.com wrote:
Show quoted text
> $ echo 'unit class Foo; constant $RT_RE = rx/« [RT]?"#"? <(
> <[0..9]>**{5..6} »/; method x ($e where $RT_RE) {say "in"}' > Foo.pm6
> $ perl6 -I. -MFoo -e 'Foo.new.x: "R"'
> getlex: outer index out of range
> in regex at
> /tmp/tmp.pTHyHW456I/.precomp/0F8E2678B84A59BD14F72E830416039936204F36.1506252653.69083/20/201A6B3053CC1422D2C3670B62616221D2290929
> line 1
> in method x at /tmp/tmp.pTHyHW456I/Foo.pm6 (Foo) line 1
> in block <unit> at -e line 1
>
> $ perl6 -v
> This is Rakudo version 2017.09-84-gb02da4d built on MoarVM version
> 2017.09.1-32-g9749b0f
> implementing Perl 6.c.




This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org