https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96486

--- Comment #18 from kargl at gcc dot gnu.org ---
Created attachment 49015
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49015&action=edit
Bring get_environment_variable almost to F2018 conformance

* check.c (gfc_check_get_environment_variable):  New function.  Implement
  checking for get_environment_variable.

* gfortran.h: Add member for 6-argument subroutine to gfc_check_f.

* intrinsic.c (do_check): Deal with 6-argument subroutine checking.
  (add_sym_6s): Add 6-argument subroutine to subroutine list.
  (add_subroutines): Use add_sym_6s to add get_envronment_variable.

* intrinsic.h: Prototype for gfc_check_get_environment_variable.

* libgfortran/intrinsics/env.c:
  . Add F2018 errmsg variable.
  . Remove runtime error for missing name variable.  This is caught in
    check.c.

Reply via email to