From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9D427385841B; Sat, 10 Jun 2023 20:17:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D427385841B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686428258; bh=4Y970n7wEOUbOulCuX57M5QJ1gBMaG2586qiJlyKZhw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XKIb+rtMPn5A43paJx2rZ9Hb/OLGUElv3WRKjDCL4QsnVwZBMJHT5Ij6UGonjprY6 oOPG6ANpXTU3WXOK1Y2nY097+A2gTIQgT5OjOZ85/G9t6F54OY3pgZLxQLrIau38qZ yOFISCfb8pI6EdiDBLr2fPEyh4OSxMP2jsgqheNg= From: "mikael 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 20:17:38 +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: mikael 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: attachments.isobsolete attachments.created 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 Mikael Morin changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #55296|0 |1 is obsolete| | --- Comment #18 from Mikael Morin --- Created attachment 55300 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55300&action=3Dedit Alternative patch v2 (In reply to Mikael Morin from comment #17) > Looking further at the implementation of gfc_trans_allocate_array_storage, > the size vs elem_size dance can be removed from my patch, as size is almo= st > unused in the onstack case. Updated patch attached.=