From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0FA4F3858C56; Thu, 13 Oct 2022 20:02:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0FA4F3858C56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665691376; bh=nENcU1YqUQCUOswWdTK0bz5+uYrRXfr/oezl7BTSC7U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YifVU1Q4AfPztwxUcEvIwPzrn8laAQexZydsbg7tOG5q7R7mw8f659eLOP9DmTX6U 76GVQ5246j3lSxdZhBhijT70WNmWdR5obfbDsf7Dr1eQFmApU0YY5125iZdDaUTous nPkUFfREAmpWgSqIZ0Z0jc3EaPj1iq2lLhnuDzDU= From: "sgk at troutmask dot apl.washington.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/93483] ICE in gfc_constructor_copy, at fortran/constructor.c:103 Date: Thu, 13 Oct 2022 20:02:55 +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: 10.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: anlauf 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=3D93483 --- Comment #13 from Steve Kargl = --- On Thu, Oct 13, 2022 at 07:35:30PM +0000, mikael at gcc dot gnu.org wrote: >=20 > --- Comment #11 from Mikael Morin --- > (In reply to Steve Kargl from comment #8) > > If regtesting complete ok, and Mikael doesn't find any additional > > problems. Please commit. >=20 > Unfortunately, I think there is one problem. > Generally speaking, I don't like doing too much at parsing stage, and > especially simplifying. It's too early in my opinion. >=20 > Here is an example, where the array simplifies using the host-associated > parameter value instead of calling the contained function with the same n= ame > hiding it. It is admittedly somewhat artificial. >=20 If might be artificial, but "wrong code" is not a pleasant side effect. There is array.cc:gfc_resolve_array_constructor(). I haven't looked to see when, or even if, this is called when compiling the examples that Gerhard, Harald, and you have devised.=