https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54223
--- Comment #4 from kargl at gcc dot gnu.org --- Author: kargl Date: Sun Feb 11 18:44:05 2018 New Revision: 257565 URL: https://gcc.gnu.org/viewcvs?rev=257565&root=gcc&view=rev Log: 2018-02-11 Steven G. Kargl <ka...@gcc.gnu.org> PR fortran/54223 PR fortran/84276 * interface.c (compare_actual_formal): Add in_statement_function bool parameter. Skip check of INTENT attribute for statement functions. Arguments to a statement function cannot be optional, issue error for missing argument. (gfc_procedure_use, gfc_ppc_use, gfc_arglist_matches_symbol): Use in_statement_function. 2018-02-11 Steven G. Kargl <ka...@gcc.gnu.org> PR fortran/54223 PR fortran/84276 * gfortran.dg/statement_function_1.f90: New test. * gfortran.dg/statement_function_2.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/statement_function_1.f90 trunk/gcc/testsuite/gfortran.dg/statement_function_2.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/interface.c trunk/gcc/testsuite/ChangeLog