From 6f60178963e08ac8148a9a894a6dd3537821f4a5 Mon Sep 17 00:00:00 2001 From: James E Keenan Date: Thu, 27 Nov 2025 12:29:06 -0500 Subject: [PATCH] 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.) --- pp_ctl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pp_ctl.c b/pp_ctl.c index a46fb7edbf56..cb21acd85f2f 100644 --- a/pp_ctl.c +++ b/pp_ctl.c @@ -3596,6 +3596,9 @@ PP(pp_goto) DIE(aTHX_ "Can't \"goto\" out of a pseudo block"); case CXt_DEFER: /* diag_listed_as: Can't "%s" out of a "defer" block */ + /* GH #23965: Retain in case of any hypothetical + * XS-constructed optrees which bypass the compile-time check. + * */ DIE(aTHX_ "Can't \"%s\" out of a \"%s\" block", "goto", S_defer_blockname(cx)); default: if (ix)