From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DC4703858C27; Thu, 16 Sep 2021 19:59:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DC4703858C27 From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/102366] [10/11/12 Regression] Illegal instruction with large arrays Date: Thu, 16 Sep 2021 19:59:07 +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: 12.0 X-Bugzilla-Keywords: wrong-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: 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: Thu, 16 Sep 2021 19:59:08 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102366 --- Comment #7 from anlauf at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #6) > Seems it changed with r12-3129-gf95946afd160e2a1f4beac4ee5e6d5633307f39a Looking at the tree dump, it appears that there is a latent issue. void MAIN__ () { real(kind=3D4) a[16776325]; However, that standard says: F2018 8.5.16 SAVE attribute (4) A variable, common block, or procedure pointer declared in the scoping = unit of a main program, [...] implicitly has the SAVE attribute My interpretations of the issue is that we miss to set the SAVE_IMPLICIT, which is confirmed by running under the debugger, which shows that a has SAVE_NONE.=