Skip Menu |
Report information
Id: 70826
Status: resolved
Priority: 0/
Queue: perl6

Owner: moritz <moritz.lenz+perl [at] gmail.com>
Requestors: masak <cmasak [at] gmail.com>
Cc:
AdminCc:

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



Subject: [BUG] The PIR file isn't correctly generated if the precompilation emits a warning in Rakudo
Date: Thu, 26 Nov 2009 00:16:14 +0100
To: rakudobug [...] perl.org
From: Carl Mäsak <cmasak [...] gmail.com>
Download (untitled) / with headers
text/plain 918b
$ cat test.p6 my $var; my $var $ perl6 --target=pir --output=test.pir test.p6 Redeclaration of variable $var $ cat test.pir 1 $ perl6 --target=past test.p6 Redeclaration of variable $var "past" => 1 <lisppaste3> masak pasted "jnthn: ever seen anything like this?" at http://paste.lisp.org/display/91118 <jnthn> masak: No. <jnthn> That looks...screwed up. <moritz_> masak: what's the return status of the compilation? <moritz_> echo $? <masak> moritz_: 0 <jnthn> masak: Does --target=past give anything interesting? <masak> jnthn: let me check. <jnthn> masak: A dupe var causes it?! <masak> jnthn: uh huh. <jnthn> 'bbq! <masak> this needs fixing. <jnthn> Well, yes. <jnthn> So do the other n-hundred tickets in RT. <jnthn> This one certainly ranks high on wtf factor though. * masak submits rakudobug <frettled> «Results 1 - 10 of about 26,500 for "masak submits rakudobug". (0.38 seconds)» <masak> frettled: lol
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 1.2k
On Wed Nov 25 15:16:33 2009, masak wrote: Show quoted text
> $ cat test.p6 > my $var; > my $var > > $ perl6 --target=pir --output=test.pir test.p6 > Redeclaration of variable $var > > $ cat test.pir > 1 > > $ perl6 --target=past test.p6 > Redeclaration of variable $var > "past" => 1 > > <lisppaste3> masak pasted "jnthn: ever seen anything like this?" at > http://paste.lisp.org/display/91118 > <jnthn> masak: No. > <jnthn> That looks...screwed up. > <moritz_> masak: what's the return status of the compilation? > <moritz_> echo $? > <masak> moritz_: 0 > <jnthn> masak: Does --target=past give anything interesting? > <masak> jnthn: let me check. > <jnthn> masak: A dupe var causes it?! > <masak> jnthn: uh huh. > <jnthn> 'bbq! > <masak> this needs fixing. > <jnthn> Well, yes. > <jnthn> So do the other n-hundred tickets in RT. > <jnthn> This one certainly ranks high on wtf factor though. > * masak submits rakudobug > <frettled> «Results 1 - 10 of about 26,500 for "masak submits > rakudobug". (0.38 seconds)» > <masak> frettled: lol
This works as you'd expect now: $ cat foo.p6 my $var; my $var $ ./perl6 --target=pir --output=foo.pir foo.p6 ===SORRY!=== Redeclaration of symbol $var at line 2, near "\n" $ cat foo.pir cat: foo.pir: No such file or directory assigning to moritz for testing. -- Will "Coke" Coleda
Since --target=pir is not spec, I'm closing the ticket without test coverage.


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