From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DA0363858C52; Tue, 27 Sep 2022 19:32:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DA0363858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664307152; bh=znja0iIxlEIk1DDOYw5m3b3HjRYO0fD/WuoKDdq4U9E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BZoDVQedYbrJh7TA+0Iqv2s9baXXaphNKb8ucXID5Ar3Tus+zaxDsw+BTnUgFKUEn ZIX8melZNfM8IoI1zhN6D26CZtv82bsKUukv1kuNvAYpoQ3EXdjkRfDx1nCPBVFxKX Ue7SE/Ynqk878lMFeHAAzceXmBrg046dOwT3XiyE= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107000] ICE in gfc_real2complex, at fortran/arith.cc:2243 Date: Tue, 27 Sep 2022 19:32:32 +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: 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: 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=3D107000 --- Comment #7 from anlauf at gcc dot gnu.org --- (In reply to Steve Kargl from comment #6) > Yes, that would work! I was thinking of something more complex > such as looking at the types of the operand(s), but simplification > probably handles +1 and -1 correctly and punts on +'1' and -'1'. I played some more and found that we would regress on e.g. print *, [real :: 1, +real(2.0)] while print *, [real :: 1, real(2.0)] is fine. So we need a better solution...=