https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102458
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu.org
--- Comment #3 from kargl at gcc dot gnu.org ---
(In reply to anlauf from comment #2)
> I think the problem is we consider command_argument_count() as a pure
> function,
> so that gfc_is_constant_expr returns true.
Well, it is a pure function. Fortran 2018, page 327,
All standard intrinsic functions are pure.