From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 895B63858CDB; Wed, 21 Sep 2022 19:44:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 895B63858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663789451; bh=jvNOKH1FZvSiuVaNBETdHUAd11Kvfl7pfOw9j0dWyhc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vOvNRPqCRcNcN2K4Ejpun7r/I/s4wlrUcjHo4BJaOU3pOm20HRPju086ymzSXAoTf rtD+U8ginDG+IE2AIzgytv08hKVoJrXPWorxjzYgbYiNJPZs4khGfUJI1td/5fPyu8 SBVo7GxwgqJSN3+lI2Jhm6K2YLX+RmlIYNdwi5zY= 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: Wed, 21 Sep 2022 19:44:10 +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: attachments.created 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 #3 from anlauf at gcc dot gnu.org --- Created attachment 53601 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53601&action=3Dedit Hackish patch This patch fixes all ICE in comment#0 and comment#1. However, it papers over the issue that we forget about earlier errors: while print *, [real :: -'1'] is diagnosed for the invalid unary "-", print *, 2 * [real :: -'1'] will throw a different error. So I'm not really happy with the hack.=