This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #111794] Make goto "" like goto ${\""}
authorFather Chrysostomos <sprout@cpan.org>
Mon, 23 Apr 2012 03:19:15 +0000 (20:19 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 21 May 2012 23:51:30 +0000 (16:51 -0700)
commitc8f85248c653c2ed4452f5de552ef3f50c4a1120
tree539a037a7218a51bd2cc485f23dc14f5306c3c04
parentfef4c52051113bd46321354d9557a9f9d6a6b092
[perl #111794] Make goto "" like goto ${\""}

The logic was written in such a way that goto "" just happened to slip
past all the checks and cause pp_goto to return NULL for the next op,
which means the end of the program.

goto ${\""} dies with ‘goto must have label’, so goto ""
should as well.

This also adds other tests for that error, which was apparently
untested till now.
pp_ctl.c
t/op/goto.t