Skip to content

Commit 6f60178

Browse files
committed
pp_ctl.c: Retain code but explain why we're doing so
Test suite does not reach this code block, but Dave M recommends retaining it in case of (hypothetical) XS-constructed optrees which bypass compile-time check. For: GH #23964 (issue); GH #23965 (p.r.)
1 parent a2b66e0 commit 6f60178

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pp_ctl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3596,6 +3596,9 @@ PP(pp_goto)
35963596
DIE(aTHX_ "Can't \"goto\" out of a pseudo block");
35973597
case CXt_DEFER:
35983598
/* diag_listed_as: Can't "%s" out of a "defer" block */
3599+
/* GH #23965: Retain in case of any hypothetical
3600+
* XS-constructed optrees which bypass the compile-time check.
3601+
* */
35993602
DIE(aTHX_ "Can't \"%s\" out of a \"%s\" block", "goto", S_defer_blockname(cx));
36003603
default:
36013604
if (ix)

0 commit comments

Comments
 (0)