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

Owner: Nobody
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] Null PMC access in Rakudo when running --target=parse on a file with a class declaration
Date: Fri, 12 Jun 2009 10:02:02 +0200
To: rakudobug [...] perl.org
From: Carl Mäsak <cmasak [...] gmail.com>
Download (untitled) / with headers
text/plain 271b
Rakudo e61569f has problems parsing class declarations: $ cat A.pm class A { } $ perl6 --target=parse A.pm Null PMC access in find_method() in Main (src/gen_setting.pm:0) This is kinda strange, because it can produce later stages without a problem. Probably a PCT bug.
Download (untitled) / with headers
text/plain 928b
On Fri Jun 12 01:02:31 2009, masak wrote: Show quoted text
> Rakudo e61569f has problems parsing class declarations: > > $ cat A.pm > class A { > } > $ perl6 --target=parse A.pm > Null PMC access in find_method() > in Main (src/gen_setting.pm:0) > > This is kinda strange, because it can produce later stages without a > problem. Probably a PCT bug.
I'm guessing the above fails because --target=prase doesn't make use of any action methods, and Rakudo's parser really needs the action methods in order to parse properly. (This will largely change when we become more STD-like.) Currently PCT chooses to not send the action grammar along as part of --parse because it assumes you only want the parse tree (and that parse tree generation will be independent of action methods). But I can see places where that might not be the case, so perhaps PCT should always send the action methods along as well. I'll have to think about it a bit. Pm
works now; resolving without spectest because --target=parse is not specced.


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