re PR fortran/42651 (Functions with result: Wrongly accepts attributes to function...
authorSteven G. Kargl <kargl@gcc.gnu.org>
Sat, 24 Mar 2018 16:31:57 +0000 (16:31 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Sat, 24 Mar 2018 16:31:57 +0000 (16:31 +0000)
commitba77f7bad0f0898454cdef193a24a825cbc3f953
treea609378fc75c2514232a66dfea13745b5218ac55
parenta199d5e74bf37ee4306c70a03c6c58f9935d54c3
re PR fortran/42651 (Functions with result: Wrongly accepts attributes to function name)

2018-03-24  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/42651
* decl.c (check_function_name): Improved error message
(gfc_match_volatile, gfc_match_asynchronous) Use check_function_name.

2018-03-24  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/42651
* gfortran.dg/pr42651.f90: New test.
* gfortran.dg/func_result_7.f90: Update error message.

From-SVN: r258834
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/func_result_7.f90
gcc/testsuite/gfortran.dg/pr42651.f90 [new file with mode: 0644]