Skip Menu |
Report information
Id: 131966
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: alex.jakimenko [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: Shaped native arrays with negative sizes (my int @a[-9999999999999999])
Download (untitled) / with headers
text/plain 180b
Code: my int @x[-2**63]; say +@x Result: -9223372036854775808 See RT #126800 for exactly the same issue with non-native arrays: https://rt.perl.org/Ticket/Display.html?id=126800
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) https://github.com/rakudo/rakudo/commit/46dca95547949bc3d791efb2620d362a68176fdc

and the accidentally broken in
(2016-11-24) https://github.com/rakudo/rakudo/commit/1b840f19599027f980fcc54f4b565ef06a1043bc

On 2017-08-26 16:43:20, alex.jakimenko@gmail.com wrote:
Show quoted text
> Code:
> my int @x[-2**63];
> say +@x
>
> Result:
> -9223372036854775808
>
>
> See RT #126800 for exactly the same issue with non-native arrays:
> https://rt.perl.org/Ticket/Display.html?id=126800




This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org