From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 894973857C71; Sat, 10 Jun 2023 19:27:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 894973857C71 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686425279; bh=1UJc29XFXOac2OGmS5a1EV8GIi8SeO+34PPnqRz1+Ec=; h=From:To:Subject:Date:In-Reply-To:References:From; b=A82KHGJG2BmJKFOHWVB7WYXaqAOvagDR+uqBk5eihjHQ2gtJt42dgQJufgRdhe0+X s/1Pyzt4rlslgyJh1aouOBhFFvGVYsWTTQpVLy3jY3F7rwp+KfgESM1WpoHMG8r+DW 9gDabL5FsxM1y4oZmuy7Y6S37QP9MtRe4gDn39Q0= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86277] Presence of optional arguments not recognized for zero length arrays Date: Sat, 10 Jun 2023 19:27:59 +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: 8.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf 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: --- 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=3D86277 --- Comment #15 from anlauf at gcc dot gnu.org --- (In reply to anlauf from comment #14) > Will look at your approach later. For the draft testcase, your patch seems to handle the explicit temporaries, but there is a runtime error (memory corruption?) for some of the cases with array ctors. Your patch also seems to fix (at first glance) the character case as well as type, so this appears to be the right direction.=