From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C51A9385771E; Fri, 26 May 2023 21:35:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C51A9385771E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685136955; bh=K+z4cpdlmOQZTkg79wr0YIz2Wlc0rKTWFNle/Vo8ltw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZGHigIVYq79LlO/1LD33nwZ8Q4xReTc7Ryo96/WPl5TDLUQCvXYEk7IvHN3Gi1h/y jipmxgUY47LT0Eqs1cHTUz3EUphyN7l/m/qBFVZESc0Rdyd96LB1ae4AdLKJ2C1wmz f6xO3WC3pdalmt5rwBfFCos1xhlEG1CwBpM7aCRA= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/109948] [13/14 Regression] ICE(segfault) in gfc_expression_rank() from gfc_op_rank_conformable() Date: Fri, 26 May 2023 21:35:55 +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.1.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf 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: 13.2 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=3D109948 --- Comment #13 from anlauf at gcc dot gnu.org --- (In reply to anlauf from comment #12) > + && e->symtree->n.sym->assoc->target->ref > + && e->symtree->n.sym->assoc->target->ref->u.ar.type =3D=3D AR_FULL > + && e->symtree->n.sym->assoc->target->ref->u.ar.as) > + { > + e->rank =3D e->symtree->n.sym->assoc->target->ref->u.ar.as->rank; > + goto done; > + } > + Maybe be just need to follow the refs and join the code with the later part= .=