From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 92FFC3858402; Wed, 26 Jul 2023 19:47:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 92FFC3858402 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690400843; bh=aPdCCu5XF9hVxX7bZMm/zjRaBTh/InJjKaKM7Z1Zmb0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=USaacYd6yOcQODN8h43v0/pI7fTRaE217ho5zQBKxbf4kyqX2R43bB58nr0rd7Gr+ X8YoWrqVX913XVMlW1UBGbc0P/1B6FdlNe4kmHl9L2kFBwRzg1fHp76Bg02/c+/n93 zANseYBI3bYZdQ64hzg3oV9AGxO0xnnKeB8UmWo4= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/68569] ICE with automatic character object and DATA Date: Wed, 26 Jul 2023 19:47:23 +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: 5.2.1 X-Bugzilla-Keywords: accepts-invalid, ice-on-invalid-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: koenigni 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=3D68569 --- Comment #9 from CVS Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:27ba73644f53c118e3f9b3fe9cd792210696ec55 commit r14-2805-g27ba73644f53c118e3f9b3fe9cd792210696ec55 Author: Harald Anlauf Date: Wed Jul 26 21:12:45 2023 +0200 Fortran: diagnose strings of non-constant length in DATA statements [PR68569] gcc/fortran/ChangeLog: PR fortran/68569 * resolve.cc (check_data_variable): Do not accept strings with deferred length or non-constant length in a DATA statement. Reject also substrings of string variables of non-constant leng= th. gcc/testsuite/ChangeLog: PR fortran/68569 * gfortran.dg/data_char_4.f90: Adjust expected diagnostic. * gfortran.dg/data_char_5.f90: Likewise. * gfortran.dg/data_char_6.f90: New test.=