Don’t assume targs are contiguous for ‘my $x; my $y’
authorFather Chrysostomos <sprout@cpan.org>
Mon, 2 Sep 2013 15:29:50 +0000 (08:29 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 2 Sep 2013 15:30:15 +0000 (08:30 -0700)
commit7601007bbbe673d3791a2d77c692a0c377835430
tree549b6e83d5808baaaaae74e2aebf5c68d0437cf6
parentda2480689f7c62990cb3d865f1124dc5c8233570
Don’t assume targs are contiguous for ‘my $x; my $y’

In commit 18c931a3, the padrange optimisation was prevented from mak-
ing this assumption for ‘my ($x,$y)’, but the assumption was still
there in the code that combines multiple statements into one.

This would lead to assertion failures (or, as of ce0d59f, crashes
under non-debugging builds) if a keyword plugin declined to handle
the second ‘my’, but only after creating a padop.

This fixes a regression from 5.16 affecting Devel::CallParser under
threaded builds.
op.c