From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 14B4F3858D35; Sun, 8 Jan 2023 20:56:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 14B4F3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673211370; bh=n0nO/wH+wl42A8iMOPS4a+54Kr6Tv9aYK2CVXF/xlRE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=N+0PW6p4rOufjDwg09hHTTBRWkMlpEOa5MOKBgC5DeAmjC7Xi5DZ1DzlkSetibYlC ngIChws2RW1PdQXn6bUrnmG/j6Ey4zh47nEE3aJQz+mrsXjHQdJj2UXtnJtEpvlbn2 ElMWfh7PPNjWsoPVD9wiq6aKWhUG1qswOxYgjY6w= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/108131] [10/11 Regression] Incorrect bound calculation when bound intrinsic used in size expression Date: Sun, 08 Jan 2023 20:56:09 +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: 13.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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: 10.5 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=3D108131 --- Comment #8 from CVS Commits --- The releases/gcc-10 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:ba5012875bc6f7910be3b5cce03e000aa9322c1f commit r10-11155-gba5012875bc6f7910be3b5cce03e000aa9322c1f Author: Harald Anlauf Date: Sat Dec 17 22:04:32 2022 +0100 Fortran: incorrect array bounds when bound intrinsic used in decl [PR108131] gcc/fortran/ChangeLog: PR fortran/108131 * array.c (match_array_element_spec): Avoid too early simplification of matched array element specs that can lead to a misinterpreta= tion when used as array bounds in array declarations. gcc/testsuite/ChangeLog: PR fortran/108131 * gfortran.dg/pr103505.f90: Adjust expected patterns. * gfortran.dg/pr108131.f90: New test. (cherry picked from commit 6a95f0e0a06d78d94138d4c3dd64d41591197281)=