From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E03CD38618C8; Fri, 27 Oct 2023 19:39:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E03CD38618C8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698435552; bh=uulicqgUEBryaIkJB+sYRAl+FuLyePhCFTECxTsrmIo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qlV8mu3CAfAcPWxcIdU3wCREsavoAC6PGnroJaY68dGby+z6r5BfCNx0RT60lCM05 PTT389vlFn2kXxp9WwBbx76rILDJ1iye2kNpJQKTXfMlUx3jYlGmTWk5JlfaV+0J3f uNhfKn4tolyw3IF86judVejyYHCs6+jNcpGmV9ck= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/104555] ICE in gfc_compare_derived_types, at fortran/interface.cc:628 since r10-2912-g70570ec192745095 Date: Fri, 27 Oct 2023 19:39:12 +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: 12.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gcc dot gnu.org X-Bugzilla-Status: NEW 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: cc 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=3D104555 anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gcc dot gnu.org --- Comment #3 from anlauf at gcc dot gnu.org --- In this case the associate-name is essential in the SELECT TYPE, as well as the surrounding SELECT RANK, and a CHARACTER component in the derived type. Replacing character(:), allocatable :: a by character(10) :: a changes the ICE to a bogus error message with a corrupted variable name. valgrind gives invalid reads...=