From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 90C043857C44; Tue, 19 Sep 2023 17:15:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 90C043857C44 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695143710; bh=IyD5aaz5SB8ufbiojiGHbFmhdsXZNrm6AXpdFuAqcYg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qjWBkpnFmRYwotLHeE2bdt1Bu5ioOW/V4UAl8B8FJEtpJid9L4WDr4ACnJeXV0yL9 HE1QiQyifXR5z5RsNj4NfDL+NaHR+bE5+Q0ritSLB8XpWHxHetQjDLm2rW9vJNIReI +d3ONz85LA1rYucjLGnSx0tNqp1fwaZTMq9kweUs= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/70231] Runtime error: Different CHARACTER lengths in array constructor with allocatable array and -O0 Date: Tue, 19 Sep 2023 17:15:10 +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: 7.1.1 X-Bugzilla-Keywords: diagnostic, 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: P3 X-Bugzilla-Assigned-To: anlauf 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D70231 --- Comment #5 from CVS Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:15acabb80f91b12836bcf4ffcb92ea10fe4e8272 commit r14-4147-g15acabb80f91b12836bcf4ffcb92ea10fe4e8272 Author: Harald Anlauf Date: Mon Sep 18 22:11:40 2023 +0200 fortran: fix checking of CHARACTER lengths in array constructors [PR702= 31] gcc/fortran/ChangeLog: PR fortran/70231 * trans-array.cc (trans_array_constructor): In absence of a typespec, use string length determined by get_array_ctor_strlen() to reasonably initialize auxiliary variable for bounds-checking. gcc/testsuite/ChangeLog: PR fortran/70231 * gfortran.dg/bounds_check_fail_7.f90: New test.=