https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103506
--- Comment #19 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Jerry DeLisle <jvdeli...@gcc.gnu.org>: https://gcc.gnu.org/g:238bce471c4391c47ffd4cd3f261f40006993f0e commit r11-10936-g238bce471c4391c47ffd4cd3f261f40006993f0e Author: Jerry DeLisle <jvdeli...@gcc.gnu.org> Date: Sat Jan 28 20:00:34 2023 -0800 ICE in gfc_free_namespace. ice-on-invalid. PR fortran/103506 gcc/fortran/ChangeLog: * parse.c (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)