From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D2010384B0D2; Thu, 27 Oct 2022 18:41:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D2010384B0D2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666896094; bh=Ev3UtSxH3DS9jIgUFiYqhduwRrfOoUUI32GRoYL50oo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ezWBMDUtpCI4MfNaPRyq5z35HDfUSfT60Ym0vqV1CAvW6/50ki4fbRcitXmKQ/KQm uP5EKAR4b3hOHh791YjiI1vxmNaOnsOX/6Gp11GFxPjIvBWPOuqeCAmUb8rbFMRNvX 89xaLRTk0/kELuD+654aKq5b+3X9xm6fjG/0p5/Q= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107441] optional arguments are identified as "present" when missing Date: Thu, 27 Oct 2022 18:41:34 +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: 12.2.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed cc keywords bug_status cf_reconfirmed_on 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=3D107441 anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 CC| |anlauf at gcc dot gnu.org Keywords| |wrong-code Status|UNCONFIRMED |NEW Last reconfirmed| |2022-10-27 --- Comment #1 from anlauf at gcc dot gnu.org --- Confirmed. There is an inconsistency either in the generated code for the caller or the callee: integer(kind=3D4) testoptional (character(kind=3D1)[1:1] & restrict w, integer(kind=3D4) x, integer(kind=3D8) _w, logical(kind=3D1) _x) vs. t =3D testoptional (&s, 0, 0, 1); How does the ABI define the ordering of character length and presence flag?=