From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C648E3858C56; Thu, 13 Oct 2022 19:35:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C648E3858C56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665689730; bh=UpCGMTw61278OlKFtiOWLkFfQorSlc4hRV6eoo6IyXc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cOMOFHPI1m7K6Rnbkq9BqSq1PtooqEQ9K8w6yUg1gy1870O1uKmedhUEjwzTxzr1c /poXGGpkhCd8hpBA3PflPId6/ZlVb6pXfr3ZRJEoVoZVTv/0f6FYwYtQGMVI1EdfDd pof4Ts/qgGrL99ILVMb36IGXs+6gC/mlky7ZeotY= From: "mikael at gcc dot gnu.org" 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 19:35:30 +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: mikael at gcc dot gnu.org 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: cc 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 Mikael Morin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikael at gcc dot gnu.org --- 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. 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. Here is an example, where the array simplifies using the host-associated parameter value instead of calling the contained function with the same name hiding it. It is admittedly somewhat artificial. module m implicit none integer, parameter :: a(*) =3D [ 7, 11 ] contains subroutine bug real :: b(1) b =3D [ real :: (a(1)) ] print *, b if (any(b /=3D [ 14. ])) stop 1 contains function a(c) integer :: a, c a =3D c + 13 end function a end subroutine bug end module m program p use m call bug end program p=