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

&[op] is broken in precompiled code #2555

Closed
pmurias opened this issue Dec 18, 2018 · 2 comments
Closed

&[op] is broken in precompiled code #2555

pmurias opened this issue Dec 18, 2018 · 2 comments
Labels

Comments

@pmurias
Copy link
Contributor

pmurias commented Dec 18, 2018

in Bug.pm6:

sub bug is export {
  &[!<];
}

in bug6.p6

use Bug;
bug()(9, 9)

perl6-m bug6.p6
Cannot invoke this object (REPR: Null; VMNull)
in block at bug.p6 line 2

The same problem also occurs in the JS and JVM backends

The cause of the problem is that &[!<] works by compiling and running code that calls &METAOP_NEGATE and the closure it returns doesn't have the outer ctx serialized properly.

@timo
Copy link
Member

timo commented Dec 19, 2018

This bug seems to have been around for a really, really long time, so at least it isn't a regression

@vrurg
Copy link
Member

vrurg commented Oct 29, 2019

Tested on 2019.07.1 – fails. HEAD passes.

Closing via MoarVM/MoarVM#1209 and 7e3d023

@vrurg vrurg closed this as completed Oct 29, 2019
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

4 participants