From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3AC9F385C413; Mon, 3 Oct 2022 10:14:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3AC9F385C413 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664792097; bh=Cft4Pg4mOro5Cb1Sj5fQeIIOdD0JdV39wiIVbvt1exQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kd59kwBj7tZxJmacHYacSNnBW5BsFTzm/z4rETUYHMdm0vGWXPDGTAk4yjNcaCcUG zJVZ7jEtNPL+inHvcHHo0keOtXiucSjnCDLLojIYtFqFvopE5V1SMb1D1xcvsyUPqm +NV5PxE4wMZ6kXLk3pVTciCHxycjblY+EbGBtl7I= From: "mikael 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: Mon, 03 Oct 2022 10:14:57 +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: mikael 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 #19 from Mikael Morin --- (In reply to anlauf from comment #17) > (In reply to anlauf from comment #16) > > Created attachment 53651 [details] > > Revised patch >=20 > Unfortunately this regresses on gfortran.dg/pr91552.f90, e.g. >=20 > print *, 2 * [real :: 1, [2], 3] Yes, verify_types misses a call to itself for every element that is an arra= y. I think we should not reject all mismatching types, because there is a call= to gfc_type_convert_binary further down that is able to handle conversions on numeric types. Basically all numeric types, even if mismatching, should wo= rk. That's the second solution.=