From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D5B18385801B; Tue, 30 Nov 2021 18:49:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D5B18385801B From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/103506] New: [10/11/12 Regression] ICE in gfc_free_namespace, at fortran/symbol.c:4039 Date: Tue, 30 Nov 2021 18:49:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Nov 2021 18:49:09 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103506 Bug ID: 103506 Summary: [10/11/12 Regression] ICE in gfc_free_namespace, at fortran/symbol.c:4039 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Started between 20190818 and 20190825 : $ cat z1.f90 module m stop end program p call m end $ cat z2.f90 module m continue end program p call m end $ cat z3.f90 module m do end program p call m end $ gfortran-12-20211128 -c z1.f90 z1.f90:2:4: 2 | stop | 1 Error: Unexpected STOP statement in MODULE at (1) z1.f90:5:6: 1 | module m | 2 ...... 5 | call m | 1 Error: Global name 'm' at (1) is already being used as a MODULE at (2) f951: internal compiler error: in gfc_free_namespace, at fortran/symbol.c:4= 039 0x87bf15 gfc_free_namespace(gfc_namespace*&) ../../gcc/fortran/symbol.c:4039 0x87c459 gfc_symbol_done_2() ../../gcc/fortran/symbol.c:4105 0x8140f8 gfc_done_2() ../../gcc/fortran/misc.c:382 0x83152a clean_up_modules ../../gcc/fortran/parse.c:6596 0x8314ec clean_up_modules ../../gcc/fortran/parse.c:6586 0x83d9d1 translate_all_program_units ../../gcc/fortran/parse.c:6661 0x83d9d1 gfc_parse_file() ../../gcc/fortran/parse.c:6925 0x88b37f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:216=