https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118714
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Paul-Antoine Arras <par...@gcc.gnu.org>: https://gcc.gnu.org/g:af51fe9593ec0e9373f8a453bab2129a48193a44 commit r15-7307-gaf51fe9593ec0e9373f8a453bab2129a48193a44 Author: Paul-Antoine Arras <par...@baylibre.com> Date: Fri Jan 31 11:41:47 2025 +0100 OpenMP/Fortran: Add missing pop_state in parse_omp_dispatch [PR118714] When the ST_NONE case is taken, the function returns immediately. Not calling pop_state causes a dangling pointer. PR fortran/118714 gcc/fortran/ChangeLog: * parse.cc (parse_omp_dispatch): Add missing pop_state.