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

A literal array with eight elements gives an imcc parsing error in Rakudo #675

Closed
p6rt opened this issue Feb 3, 2009 · 4 comments
Closed

Comments

@p6rt
Copy link

p6rt commented Feb 3, 2009

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

Searchable as RT63004$

@p6rt
Copy link
Author

p6rt commented Feb 3, 2009

From @masak

Parrot r36318 (before the merge that broke Rakudo), and Rakudo 21f374.

For some reason, creating a literal array with seven elements works,
but not eight.

$ perl6 -e 'my @​layers = [0, 0, 0, 0, 0, 0, 0]; .perl.say for @​layers'
[0, 0, 0, 0, 0, 0, 0]
$ perl6 -e 'my @​layers = [0, 0, 0, 0, 0, 0, 0, 0]; .perl.say for @​layers'
error​:imcc​:syntax error, unexpected ')' (')')
  in file 'EVAL_16' line 58
Null PMC access in isa()
[...]

@p6rt
Copy link
Author

p6rt commented Feb 4, 2009

From @Util

This is caused by a Parrot bug introduced in r36165, and resolved in
r36340. The example you gave exactly matches the reduced form of the
problem that I arrived at, before I traced the problem out of Rakudo and
into Parrot. See TT#​256 at https://trac.parrot.org/parrot/ticket/256 .
If you cannot update your copy of Parrot to HEAD, then you can just
apply the single line patch that resolves the problem. To get the patch,
use `svn diff -c 36340 src/pmc/resizablestringarray.pmc`. The rest of
r36340 is the regression test for the bug.

@p6rt
Copy link
Author

p6rt commented Feb 4, 2009

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

@p6rt
Copy link
Author

p6rt commented Feb 10, 2009

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

@p6rt p6rt closed this as completed Feb 10, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant