[Bug fortran/107441] optional arguments are identified as "present" when missing
sgk at troutmask dot apl.washington.edu
gcc-bugzilla@gcc.gnu.org
Thu Oct 27 21:56:16 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107441
--- Comment #9 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
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=107441
>
> --- 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:
> >
> > subroutine test3 (w)
> > character, intent(in), value, optional :: w
> > print*, 'present(w) is ', present(w)
> > end subroutine test3
> >
> > It is not new, though.
>
> This is now tracked in PR107444.
>
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.
More information about the Gcc-bugs
mailing list