From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 083493858D1E; Wed, 9 Nov 2022 17:56:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 083493858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668016598; bh=tw3WcB+y/suUswU4oH35KlZWKdq8qbFCIZMuV5wobJI=; h=From:To:Subject:Date:From; b=cHhC9nRWhpLGZcNsMASroWpTa5B7f62p5OQwBfPkrE7y15B3DQedhQLWszv/Gfn1j 28qP/sqHC4rhqQLY39KISQOJOhrHB/hOSO9ZY/KbSy3LYBtIaKorFQBxKHmVff0NIj NaoUek0JOwn04toQjfC0/vmtNayHWI460ijVF3iI= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107596] New: ICE in gfc_match_submodule, at fortran/module.cc:773 Date: Wed, 09 Nov 2022 17:56:33 +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: 13.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107596 Bug ID: 107596 Summary: ICE in gfc_match_submodule, at fortran/module.cc:773 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Started with r6 : $ cat z1.f90 submodule(m) submodule(m) $ cat z2.f90 module m end submodule(m)1 submodule(m)2 end $ gfortran-13-20221106 -c z1.f90 z1.f90:1:12: 1 | submodule(m) | 1 Error: Syntax error in SUBMODULE statement at (1) f951: internal compiler error: in gfc_match_submodule, at fortran/module.cc= :773 0x83b802 gfc_match_submodule() ../../gcc/fortran/module.cc:773 0x855df1 match_word ../../gcc/fortran/parse.cc:67 0x85b8cd decode_statement ../../gcc/fortran/parse.cc:564 0x85be8a next_free ../../gcc/fortran/parse.cc:1402 0x85be8a next_statement ../../gcc/fortran/parse.cc:1634 0x861e39 gfc_parse_file() ../../gcc/fortran/parse.cc:6765 0x8b0c8f gfc_be_parse_file ../../gcc/fortran/f95-lang.cc:229=