https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103506
--- Comment #17 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Jerry DeLisle <jvdeli...@gcc.gnu.org>: https://gcc.gnu.org/g:3d2860f933cc01668272e0aaa354aa96899b3a82 commit r12-9319-g3d2860f933cc01668272e0aaa354aa96899b3a82 Author: Jerry DeLisle <jvdeli...@gcc.gnu.org> Date: Sat Jan 28 20:00:34 2023 -0800 Fortran: ICE in gfc_free_namespace. ice-on-invalid. PR fortran/103506 gcc/fortran/ChangeLog: * parse.cc (parse_module): Remove use of a bool error value that prevented proper setting of the namespace pointer. gcc/testsuite/ChangeLog: * gfortran.dg/pr103506_1.f90: New test. (cherry picked from commit 8011fbba7baa46947341ca8069b5a327163a68d5)