https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107193
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Eugene Rozenfeld <ero...@gcc.gnu.org>: https://gcc.gnu.org/g:80f414e6d73f9f1683f93d83ce63a6a482e54bee commit r13-3213-g80f414e6d73f9f1683f93d83ce63a6a482e54bee Author: Eugene Rozenfeld <ero...@microsoft.com> Date: Mon Oct 10 14:10:31 2022 -0700 Fix PR107193. The bug was introduced in f30e9fd33e56a5a721346ea6140722e1b193db42. A variable (cur_locus_e) was incorrectly declared inside a loop. I also moved two other declarations (last and locus) down to make the code more clear. Tested on x86_64-pc-linux-gnu. gcc/ChangeLog: PR debug/107193 * tree-cfg.cc (assign_discriminators): Move declaration of cur_locus_e out of the loop.