From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8950F3858D32; Mon, 12 Jun 2023 21:00:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8950F3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686603653; bh=v/vdK0+5pf0Us6JQ4MUYiBQ3VVl9BnGU1/3lc1fjlWc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ucB+5X5k5jrbGOGvRaV52FRtxwT4ngZNIBKHokicIlQ8r7u4QyA0R/C9N4Kd+QwGJ 8XG2UZcMT+xuunMDVk42cGmuMpU5Gifi7CT3w8jU6fDEBW/z2QjZwVhyJ0cf/nZG2a kXBJ3KUeB+fr4SS8o0/EY7VSaJJLPVtiYQPhMEAo= 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: Mon, 12 Jun 2023 21:00:53 +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 #31 from anlauf at gcc dot gnu.org --- (In reply to Mikael Morin from comment #30) > Now that I think again, I'm not even sure we would regress. > My concern was that the data would remain NULL after the realloc(NULL, 0), > and the argument would not be seen as present. With the second temporary, > all is well. OK, I'll add that variant to the testcases. Better safe than sorry... ;-) > That's all there is. OK, I'll then package it.=