From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8923D3857BAB; Tue, 21 Jun 2022 18:53:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8923D3857BAB From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/106050] New: ICE in reject_statement, at fortran/parse.cc:2879 Date: Tue, 21 Jun 2022 18:53:23 +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 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, 21 Jun 2022 18:53:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106050 Bug ID: 106050 Summary: ICE in reject_statement, at fortran/parse.cc:2879 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: --- Affects versions down to r8 : (out of order statement) $ cat z1.f90 program p stop type t(k) integer, kind :: k =3D 4 end type end $ cat z2.f90 program p continue type t(k) integer, kind :: k =3D 4 end type end $ cat z3.f90 program p a =3D 1 type t(k) integer, kind :: k =3D 4 end type end $ cat z4.f90 program p print * type t(k) integer, kind :: k =3D 4 end type end $ gfortran-13-20220619 -c z1.f90 z1.f90:3:12: 3 | type t(k) | 1 Error: Unexpected derived type declaration statement at (1) f951: internal compiler error: Segmentation fault 0xe845df crash_signal ../../gcc/toplev.cc:322 0x70b53a delete_root ../../gcc/fortran/bbt.cc:150 0x70b6fe gfc_delete_bbt(void*, void*, int (*)(void*, void*)) ../../gcc/fortran/bbt.cc:197 0x7deca8 gfc_delete_symtree(gfc_symtree**, char const*) ../../gcc/fortran/symbol.cc:2963 0x7e053d gfc_restore_last_undo_checkpoint() ../../gcc/fortran/symbol.cc:3708 0x7950f7 reject_statement ../../gcc/fortran/parse.cc:2879 0x79f8aa parse_progunit ../../gcc/fortran/parse.cc:6257 0x7a0ea1 gfc_parse_file() ../../gcc/fortran/parse.cc:6755 0x7ef83f gfc_be_parse_file ../../gcc/fortran/f95-lang.cc:229=