Skip to content

Commit af99ddd

Browse files
committed
Fatalize use of goto to jump into construct
Fixes: GH #23618
1 parent de313d8 commit af99ddd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pp_ctl.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3652,9 +3652,7 @@ PP(pp_goto)
36523652
? 2
36533653
: 1;
36543654
if (enterops[i])
3655-
deprecate_fatal_in(WARN_DEPRECATED__GOTO_CONSTRUCT,
3656-
"5.42",
3657-
"Use of \"goto\" to jump into a construct");
3655+
croak("Use of \"goto\" to jump into a construct is no longer permitted");
36583656
}
36593657

36603658
/* pop unwanted frames */

0 commit comments

Comments
 (0)