From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2ACD53857434; Thu, 27 Oct 2022 21:56:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2ACD53857434 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666907779; bh=bxofkckwblokgQZvU5jp2pkKxm8BTeYwU7qvLDUQmA0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SGRQtjR1SG5dMnOYAV9MWx39jlX9m3VjZ0KTuhNcbgUiGAAj4Yy09kbzR1jP5d5Jr YmPqhtEYDX3KPY9NpEqKFdDBLwEaikapOfMIe+oTLkiZJ/iwp1734U10QKmOV0ksiP 1glOkNwmrMbfpQ2w3zQLTOn8jXAtq0Jqe34YOrUQ= From: "sgk at troutmask dot apl.washington.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107441] optional arguments are identified as "present" when missing Date: Thu, 27 Oct 2022 21:56:16 +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: sgk at troutmask dot apl.washington.edu 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: 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 --- Comment #9 from Steve Kargl -= -- On Thu, Oct 27, 2022 at 09:11:08PM +0000, anlauf at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107441 >=20 > --- Comment #8 from anlauf at gcc dot gnu.org --- > (In reply to anlauf from comment #7) > > However, while working on variations of the testcase, I hit an ICE for: > >=20 > > subroutine test3 (w) > > character, intent(in), value, optional :: w > > print*, 'present(w) is ', present(w) > > end subroutine test3 > >=20 > > It is not new, though. >=20 > This is now tracked in PR107444. >=20 If no other issues pop up and if this is an old issue, you can probably commit your fix for current issue as you've opened a new bug report. Thanks for pecking away at gfortran bugs.=