From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D34C43858C31; Mon, 10 Jul 2023 16:20:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D34C43858C31 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689006050; bh=/f8IXFsXzpsO5AhkUXA/i3+31xMC1JYea552bbQMSxA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tDukn88Dhc7PeJ/LVLV5G/wGPkw3TeFb0SIbUcPenxW3YXmu2+efIkKMEgO91Ljfa jrBDKs7nhdu+HyY6VyuKYcqjqa3m/5qLLtXdECL4O9getLDclskm4Ajycsv3puAC0U W29725YPpgKFbHXiLfXT8vqeTn5brGzI5G5dqMKs= From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/106050] ICE in reject_statement, at fortran/parse.cc:2879 since r8-3056-g5bab4c9631c478b7 Date: Mon, 10 Jul 2023 16:20:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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=3D106050 --- Comment #3 from Paul Thomas --- (In reply to Martin Li=C5=A1ka from comment #2) > Likely started with r8-3056-g5bab4c9631c478b7, it was rejected before the > revision anyway. With all branches up to 13-branch, I see: ../pr105594/pr106050.f90:3:12: 3 | type t(k) | 1 Error: Unexpected derived type declaration statement at (1) (null):0: confused by earlier errors, bailing out With trunk, I get: ../pr105594/pr106050.f90:3:12: 3 | type t(k) | 1 Error: Unexpected derived type declaration statement at (1) f951: internal compiler error: Segmentation fault 0x101683f crash_signal ../../gcc/gcc/toplev.cc:314 0x9228ca delete_root ../../gcc/gcc/fortran/bbt.cc:150 0x922a8e gfc_delete_bbt(void*, void*, int (*)(void*, void*)) ../../gcc/gcc/fortran/bbt.cc:197 0xa0923c gfc_delete_symtree(gfc_symtree**, char ...... I will be attaching a patch that works for me. Paul=