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

Shaped native arrays with negative sizes (my int @a[-9999999999999999]) #6470

Open
p6rt opened this issue Aug 26, 2017 · 2 comments
Open

Shaped native arrays with negative sizes (my int @a[-9999999999999999]) #6470

p6rt opened this issue Aug 26, 2017 · 2 comments
Labels
9999 MoarVM Related to Rakudo-MoarVM Rakudo Tickets to be moved to rakudo/rakudo/issues regression Issue did not exist previously

Comments

@p6rt
Copy link

p6rt commented Aug 26, 2017

Migrated from rt.perl.org#131966 (status was 'new')

Searchable as RT131966$

@p6rt
Copy link
Author

p6rt commented Aug 26, 2017

From @AlexDaniel

Code​:
my int @​x[-2**63];
say +@​x

Result​:
-9223372036854775808

See RT #​126800 for exactly the same issue with non-native arrays​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=126800

@p6rt
Copy link
Author

p6rt commented Oct 14, 2017

From @AlexDaniel

Actually, it is a regression.

Code​:
my int @​x[-2**63]; say @​x.shape

¦«2015.12»​:
(-9223372036854775808)

¦«2016.06»​:
Illegal dimension in shape​: -9223372036854775808. All dimensions must be integers bigger than 0
  in block <unit> at /home/bisectable/git/whateverable/data/regressionable/15074816/snippet line 1
 «exit code = 1»

¦«2016.12»​:
(-9223372036854775808)

¦«2017.06»​:
(-9223372036854775808)

¦«f72be0f130cf»​:
(-9223372036854775808)

Possible IRC discussion​: https://irclog.perlgeek.de/perl6-dev/2017-08-26#i_15074816

So it was first fixed in
(2016-04-09) rakudo/rakudo@46dca95

and the accidentally broken in
(2016-11-24) rakudo/rakudo@1b840f1

On 2017-08-26 16​:43​:20, alex.jakimenko@​gmail.com wrote​:

Code​:
my int @​x[-2**63];
say +@​x

Result​:
-9223372036854775808

See RT #​126800 for exactly the same issue with non-native arrays​:
https://rt-archive.perl.org/perl6/Ticket/Display.html?id=126800

@p6rt p6rt added 9999 regression Issue did not exist previously labels Jan 5, 2020
@AlexDaniel AlexDaniel added MoarVM Related to Rakudo-MoarVM Rakudo Tickets to be moved to rakudo/rakudo/issues labels Feb 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
9999 MoarVM Related to Rakudo-MoarVM Rakudo Tickets to be moved to rakudo/rakudo/issues regression Issue did not exist previously
Projects
None yet
Development

No branches or pull requests

2 participants