From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9954A3858D37; Wed, 2 Feb 2022 18:50:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9954A3858D37 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/104352] ICE in gfc_conv_intrinsic_anyall, at fortran/trans-intrinsic.cc:4481 (etc.) Date: Wed, 02 Feb 2022 18:50:11 +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: 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: keywords 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 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: Wed, 02 Feb 2022 18:50:11 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104352 G. Steinmetz changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-invalid-code --- Comment #1 from G. Steinmetz --- Intrinsic "any" in above test files can be replaced with e.g. $ cat za1.f90 program p integer, parameter :: a(0) =3D 1 print *, all(a(1:1) =3D=3D 1) print *, any(a(1:1) =3D=3D 1) print *, count(a(1:1) =3D=3D 1) print *, is_contiguous(a(1:1) =3D=3D 1) print *, parity(a(1:1) =3D=3D 1) print *, shape(a(1:1) =3D=3D 1) print *, size(a(1:1) =3D=3D 1) print *, ubound(a(1:1) =3D=3D 1) end Other variants also affect intrinsics like iany, iall, ... $ cat zb1.f90 program p integer, parameter :: a(0) =3D 1 print *, iall(a(1:1)) print *, iany(a(1:1)) print *, iparity(a(1:1)) print *, maxval(a(1:1)) print *, minval(a(1:1)) print *, product(a(1:1)) print *, sum(a(1:1)) end Another modification pattern hits minloc, macloc, ... $ cat zc1.f90 program p integer, parameter :: a(0) =3D 1 print *, ibclr(a(1:1), 1) print *, ibset(a(1:1), 1) print *, max(a(1:1), 1) print *, max0(a(1:1), 1) print *, maxloc(a(1:1), 1) print *, min(a(1:1), 1) print *, min0(a(1:1), 1) print *, minloc(a(1:1), 1) end or ... $ cat zd1.f90 program p real, parameter :: a(0) =3D 1 print *, dot_product(a(1:1), a(1:1)) print *, norm2(a(1:1)) end subroutine s complex, parameter :: a(0) =3D 1 print *, dot_product(a(1:1), a(1:1)) print *, conjg(a(1:1)) end=