https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118325
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:640b550425180bdab7bc67edc6a48465f4023888 commit r15-6684-g640b550425180bdab7bc67edc6a48465f4023888 Author: Richard Biener <rguent...@suse.de> Date: Tue Jan 7 15:11:47 2025 +0100 middle-end/118325 - nonlocal goto lowering When nonlocal goto lowering creates an artificial label it fails to adjust its context. PR middle-end/118325 * tree-nested.cc (convert_nl_goto_reference): Assign proper context to generated artificial label. * gcc.dg/pr118325.c: New testcase.