From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DD6713854813; Wed, 10 Mar 2021 08:39:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DD6713854813 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/99506] internal compiler error: in record_reference, at cgraphbuild.c:64 Date: Wed, 10 Mar 2021 08:39:19 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2021 08:39:20 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99506 --- Comment #4 from Richard Biener --- This is a frontend issue, the FE produces an invalid static initializer for 'latt' (DECL_INITIAL): {(real(kind=3D8)) latt100[(integer(kind=3D8)) i + -1] / 1.0e+2, (real(kind= =3D8)) latt100[(integer(kind=3D8)) i + -1] / 1.0e+2,... } if this should be dynamic initialization FEs are responsible for lowering this. I don't know fortran enough for what 'parameter' means in this context: real(double), parameter:: latt(jmax) =3D [(latt100(i)/100.d0, j=3D1,jma= x)] but the middle-end sees a readonly global (TREE_STATIC) variable.=