https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129272
Harald Anlauf <anlauf at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot
gnu.org
CC| |anlauf at gcc dot gnu.org
--- Comment #12 from Harald Anlauf <anlauf at gcc dot gnu.org> ---
(In reply to Steve Kargl from comment #11)
> If this passes regression testing, it LGTM. It is certainly
> better/cleaner than the patch I suggested.
It did pass here.
> In gfc_conv_intrinsic_function_args, gfortran skips missing
> optional arguments, but that's based on arg->expr == NULL,
> which isn't the case here. In addition the 'stat' actual
> argument is associated with an intent(out) dummy argument
> that has neither the pointer or allocatable attribute. This
> means that 'stat' must be definable. It seems gfortran is
> missing a check.
Let's do things step by step.
The checking is already wrong: STAT and ERRMSG were added in F2018.
I'll update this.
Andre seemed to do some preparations for F2018's INTENT(OUT) handling,
which was pushed to the 16-branch but this must be incomplete.
So I am going to fix the ICE here. There is some other meta-bug for F2018.
We should find it and attach our findings there.