Fix for RT#2353: catch yyparse() exceptions in (?{...})
authorGeorge Greer <perl@greerga.m-l.org>
Sat, 10 Jul 2010 23:18:12 +0000 (19:18 -0400)
committerRafael Garcia-Suarez <rgs@consttype.org>
Mon, 12 Jul 2010 11:53:33 +0000 (13:53 +0200)
commit634d6919699655c843f8d8c3ea64922d0403c499
treeb77d3c56a3b4a086cfc3f2877474006ea34e257c
parent31be325893db1b4bd951b7e64f1557d4c5ca6246
Fix for RT#2353: catch yyparse() exceptions in (?{...})

Ticket is entitled:
"panic: top_env when localizing a lexical variable in qr{(?{...})}"

but a better description would be:
"(?{...}) does not catch yyparse() exceptions in regex compilation"

Changes Perl_sv_compile_2op() to tell doeval() that it must use
S_try_yyparse() to catch any exception that yyparse() may throw.
pp_ctl.c