Skip Menu |
Report information
Id: 123862
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: Mouq <alexmoquin [at] gmail.com>
Cc:
AdminCc:

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



Subject: [BUG] Negative exponents not parsed in radix literals
Date: Tue, 17 Feb 2015 14:20:20 -0500
From: Alex Moquin <alexmoquin [...] gmail.com>
To: rakudobug [...] perl.org
Download (untitled) / with headers
text/plain 644b
GitHub user MARTIMM <mt1957@gmail.com> submitted the following bug to the Roast GitHub issues ( https://github.com/perl6/roast/issues/53 )

Show quoted text

Reading through s02 section Exponentials, I found a number representation :10 which I tried in perl6.
Result is

> :10<1*2**-64>
===SORRY!=== Error while compiling <unknown file>
Malformed radix number
at <unknown file>:1
------> :10<1*2**⏏-64>
    expecting any of:
        number in radix notation

It is also not tested in 'S02-literals/radix.t lines 183–192'.

Version of perl;
This is perl6 version 2015.01-77-gd320f00 built on MoarVM version 2015.01-21-g4ee4925

Download (untitled) / with headers
text/plain 780b
On Tue Feb 17 11:20:39 2015, Mouq wrote: Show quoted text
> GitHub user MARTIMM <mt1957@gmail.com> submitted the following bug to the > Roast GitHub issues ( https://github.com/perl6/roast/issues/53 ) > > Reading through s02 section Exponentials, I found a number representation
> > :10 which I tried in perl6. > > Result is > >
> > > :10<1*2**-64>
> > ===SORRY!=== Error while compiling <unknown file> > > Malformed radix number > > at <unknown file>:1 > > ------> :10<1*2**⏏-64> > > expecting any of: > > number in radix notation > > > > It is also not tested in 'S02-literals/radix.t lines 183–192'. > > > > Version of perl; > > This is perl6 version 2015.01-77-gd320f00 built on MoarVM version > > 2015.01-21-g4ee4925 > >
A fudge test has been added to S02-literals/radix.t
Still reproducible (2017.11, HEAD(5929887))

On 2015-03-10 14:55:48, david.warring wrote:
Show quoted text
> On Tue Feb 17 11:20:39 2015, Mouq wrote:
> > GitHub user MARTIMM <mt1957@gmail.com> submitted the following bug to the
> > Roast GitHub issues ( https://github.com/perl6/roast/issues/53 )
> >
> > Reading through s02 section Exponentials, I found a number representation
> > > :10 which I tried in perl6.
> > > Result is
> > >
> > > > :10<1*2**-64>
> > > ===SORRY!=== Error while compiling <unknown file>
> > > Malformed radix number
> > > at <unknown file>:1
> > > ------> :10<1*2**⏏-64>
> > > expecting any of:
> > > number in radix notation
> > >
> > > It is also not tested in 'S02-literals/radix.t lines 183–192'.
> > >
> > > Version of perl;
> > > This is perl6 version 2015.01-77-gd320f00 built on MoarVM version
> > > 2015.01-21-g4ee4925
> > >
>
> A fudge test has been added to S02-literals/radix.t




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