From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0362A3858D26; Thu, 23 May 2024 05:30:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0362A3858D26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716442208; bh=lTvramRBU1ka5lH5CKMN1+Ovaky2bjk1iwne5xHAPtE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lo4ZZb6vbhjTQhxDpjFL6LvbUhRX//rl152Xb7ABRtvS0pGdpxV2+ZVHLfDp9YYu7 3oog5HwZ14sH/OwZUoRJL2pIVYZMh50pbm8AKfJZNuFMMAKvUyNHMvPhpjEC6gp7TD WXtuCkvpql0K01P8Q60VwG2O5d98TEfrZX0D9TMM= From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/59104] Wrong result with SIZE specification expression Date: Thu, 23 May 2024 05:30: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: 4.9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault 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: attachments.created 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=3D59104 --- Comment #5 from Paul Thomas --- Created attachment 58275 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D58275&action=3Dedit "Fix" for this PR This patch causes regressions in dependent_decls_1.f90 and mapping_[1,2].f9= 0. However, it demonstrates that the cause of this PR is that the symbols arri= ving in gfc_trans_deferred_vars must be treated in an order that respects dependencies or, perhaps better, declaration order. Paul=