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 parameter mixes in role in macro in Rakudo #3216

Closed
p6rt opened this issue Aug 19, 2013 · 4 comments
Closed

Null PMC access when parameter mixes in role in macro in Rakudo #3216

p6rt opened this issue Aug 19, 2013 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Aug 19, 2013

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

Searchable as RT119371$

@p6rt
Copy link
Author

p6rt commented Aug 19, 2013

From @masak

<diakopter> r​: role popo { macro marco { $^a but popo }; marco popo; }
<camelia> rakudo 13f2f9​: OUTPUT«===SORRY!=== Error while compiling
/tmp/ix7YBbZNgR␤None of the parametric role variants for 'popo'
matched the arguments supplied.␤Null PMC access in get_pmc_keyed()␤at
/tmp/ix7YBbZNgR​:1␤------> ␤»
<diakopter> npmca. win.
* masak submits NPMCA rakudobug
<jnthn> Aaaaaad....it's called marco!
<masak> jnthn​: seems I can't prevent diakopter doing this.
* donaldh laughs his socks off

@p6rt
Copy link
Author

p6rt commented Nov 9, 2014

From @usev6

This no longer leads to a Null PMC access on Parrot (the output is identical on Moar and JVM)​:

$ perl6-p -e 'role popo { macro marco { $^a but popo }; marco popo; }'
===SORRY!=== Error while compiling -e
None of the parametric role variants for 'popo' matched the arguments supplied.
Cannot call ''; none of these signatures match​:
at -e​:1
------>

I added a test to S14-roles/mixin.t with commit Raku/roast@22a988135a.

I'm closing this ticket now. (In case the ticket was not only about the NPMCA and the command is meant to compile, please re-open the ticket.)

1 similar comment
@p6rt
Copy link
Author

p6rt commented Nov 9, 2014

From @usev6

This no longer leads to a Null PMC access on Parrot (the output is identical on Moar and JVM)​:

$ perl6-p -e 'role popo { macro marco { $^a but popo }; marco popo; }'
===SORRY!=== Error while compiling -e
None of the parametric role variants for 'popo' matched the arguments supplied.
Cannot call ''; none of these signatures match​:
at -e​:1
------>

I added a test to S14-roles/mixin.t with commit Raku/roast@22a988135a.

I'm closing this ticket now. (In case the ticket was not only about the NPMCA and the command is meant to compile, please re-open the ticket.)

@p6rt
Copy link
Author

p6rt commented Nov 9, 2014

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

@p6rt p6rt closed this as completed Nov 9, 2014
@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