https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69497
Bug ID: 69497 Summary: ICE in gfc_free_namespace, at fortran/symbol.c:3701 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- An outer statement block with an incomplete embedded statement block is sometimes not handled properly, like the following : $ cat z1.f90 program p block do end block end $ gfortran-6 z1.f90 f951: internal compiler error: in gfc_free_namespace, at fortran/symbol.c:3701 $ gfortran-5.3.1 z1.f90 (null):0: confused by earlier errors, bailing out $ gfortran-4.9.0 z1.f90 f951: internal compiler error: in gfc_free_namespace, at fortran/symbol.c:3461 Please find attached a list with several more examples.