Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null PMC access when using variable in interpolated block in double-quoted string in regex in Rakudo #2925

Closed
p6rt opened this issue Oct 16, 2012 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Oct 16, 2012

Migrated from rt.perl.org#115294 (status was 'resolved')

Searchable as RT115294$

@p6rt
Copy link
Author

p6rt commented Oct 16, 2012

From @masak

<TimToady> nr​: $_ = "foo bar"; say m/ "{ $_ }" /
<p6eval> niecza v22-13-g0d2a99e​: OUTPUT«#<match from(0) to(7) text(foo
bar) pos([].list) named({}.hash)>␤»
<p6eval> ..rakudo 7731d2​: OUTPUT«Null PMC access in
find_method('Stringy')␤ in regex [...]
< TimToady> ooh, rakudobug
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Oct 7, 2014

From @usev6

This looks good now​: It doesn't die anymore, but returns "foo bar".

$ perl6-m -e '$_ = "foo bar"; say m/ "{ $_ }" /'
「foo bar」

$ perl6-p -e '$_ = "foo bar"; say m/ "{ $_ }" /'
「foo bar」

$ perl6-j -e '$_ = "foo bar"; say m/ "{ $_ }" /'
「foo bar」

I added a test to S05-mass/rx.t with the following commit​: Raku/roast@98ef6a0163

@p6rt
Copy link
Author

p6rt commented Oct 7, 2014

The RT System itself - Status changed from 'new' to 'open'

@p6rt p6rt closed this as completed Oct 7, 2014
@p6rt
Copy link
Author

p6rt commented Oct 7, 2014

@usev6 - Status changed from 'open' to 'resolved'

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant