From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CFC163858D39; Wed, 24 May 2023 17:05:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CFC163858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684947924; bh=re5ZPLMHZR188BuyFtIGwxKM/juPq6WDYInCqxRexjQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=yooYUToaFMrqd7F4xjUT8f0rzY7xCh0ZnejPXwXX+wpFZK8oEvUamX42DD4ZoB2Gq xkAgfVd96M4HQ42F8Zmj4hbAxrH85/0X7/OCvVQlG9/jtM0+IemqYHIpPfWdBEtYLh 8ArnMshEHWHrpn9d2ros/guhIHiZHDyoClRerWF0= From: "rimvydas.jas at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/109948] ICE(segfault) in gfc_expression_rank() from gfc_op_rank_conformable() Date: Wed, 24 May 2023 17:05:23 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: rimvydas.jas at gmail dot com 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: 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 #1 from Rimvydas (RJ) --- More trivial testcase resulting in similar ICE. $ cat test_associate2.f90=20 subroutine foo(grib) implicit none type b integer, allocatable :: k_2d(:) end type type(b) :: grib integer :: i associate(k=3D>grib%k_2d) i =3D k(1) if (any(k=3D=3D1)) i =3D 1 end associate end subroutine foo=