ICE in gfc_free_namespace. ice-on-invalid.
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 29 Jan 2023 04:00:34 +0000 (20:00 -0800)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 29 Jan 2023 19:10:06 +0000 (11:10 -0800)
commit8011fbba7baa46947341ca8069b5a327163a68d5
tree4ce180e3310e4e2fd283dea79dc5c637aa76bcf9
parentda3aca031be736fe4fa8daa57c7efa69dc767160
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.
gcc/fortran/parse.cc
gcc/testsuite/gfortran.dg/pr103506_1.f90 [new file with mode: 0644]