Sterling Hughes writes: > Hey, > > The following PIR crashes CVS head: > > .sub _main > $P0 = new PerlUndef > .sym PerlUndef i > i = new PerlUndef > i = 0 > L0: > $I0 = 0 > $P1 = new PerlUndef > $P1 = 10 > unless i < $P1 goto L3 > $I0 = 1 > L3: > if $I0 goto L1 > goto L2 > L1: > print "hello\n" > $P0 = i > i = i + 1 > goto L0 > L2: > .end
That crashes for the same reason that this crashes (or should crash, at least): .sub _main .end Because you're missing an C<end> op. Luke > > Which is the php code generation of a for loop: > > for ($i = 0; $i < 10; $i++) { > echo "hello\n"; > } > > This has previously worked - do any changes need to be applied to the > code in order to have it working again? Is this just a current parrot > bug? > > (doesn't matter if you run this with the slowcore or the jit btw) > > -Sterling > > -- > "Reductionists like to take things apart. The rest of us are > just trying to get it together." > - Larry Wall, Programming Perl, 3rd Edition