2018-02-11 Steven G. Kargl <kargl@gcc.gnu.org>
commit1cc1852a260467670f343eddf1bdbdbb45f3febc
authorkargl <kargl@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Feb 2018 18:44:05 +0000 (11 18:44 +0000)
committerkargl <kargl@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Feb 2018 18:44:05 +0000 (11 18:44 +0000)
treeb65b027b9db3990712080a76dafddb627b91f43b
parentc3fa28c38b8ee6f1970a4df439141c1681265079
2018-02-11  Steven G. Kargl  <kargl@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  <kargl@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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257565 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/interface.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/statement_function_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/statement_function_2.f90 [new file with mode: 0644]