From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 133FE3858419; Sat, 27 Jan 2024 16:52:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 133FE3858419 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706374356; bh=QYnYdh/skr3aCsSx1UZ7U5bv8sLb2Qll72hMYgcO7zk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Zw9EnIupEV9PGaEufwg+1VMl2CKip9XTBL9hos44Viagw1Pr0dYtZJxQxYBJnPqyS xI/6pFfpbHy1cFc8KQFXXO2oilQOvWARnVonjjFFdPXPm6dLPcgGcZl+lwzo+fx6dg n+tDYwhbFQOHn4haSe0VgJse7pBWZOK4J8d5YAe4= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/104908] [11/12/13/14 Regression] incorrect Fortran out-of-bound runtime error. Date: Sat, 27 Jan 2024 16:52:34 +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.2.0 X-Bugzilla-Keywords: ice-on-valid-code, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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: 11.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=3D104908 --- Comment #9 from GCC Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:ce61de1b8a1bb3a22118e900376f380768f2ba59 commit r14-8471-gce61de1b8a1bb3a22118e900376f380768f2ba59 Author: Harald Anlauf Date: Sat Jan 27 17:41:43 2024 +0100 Fortran: fix bounds-checking errors for CLASS array dummies [PR104908] Commit r11-1235 addressed issues with bounds of unlimited polymorphic a= rray dummies. However, using the descriptor from sym->backend_decl does bre= ak the case of CLASS array dummies. The obvious solution is to restrict t= he fix to the unlimited polymorphic case, thus keeping the original descri= ptor in the ordinary case. gcc/fortran/ChangeLog: PR fortran/104908 * trans-array.cc (gfc_conv_array_ref): Restrict use of transfor= med descriptor (sym->backend_decl) to the unlimited polymorphic cas= e. gcc/testsuite/ChangeLog: PR fortran/104908 * gfortran.dg/pr104908.f90: New test.=