diff options
author | Steven G. Kargl <kargl@gcc.gnu.org> | 2019-01-15 20:17:35 +0000 |
---|---|---|
committer | Steven G. Kargl <kargl@gcc.gnu.org> | 2019-01-15 20:17:35 +0000 |
commit | a81a6d58367e63f3c7314eb793002e5feb379428 (patch) | |
tree | b0f7c8c0c5db7c1ee6891c42d40bbc270d8da2af /gcc/fortran/resolve.c | |
parent | 92f3a180aaf6f3cd0b06e282632fc320445e3c01 (diff) | |
download | gcc-a81a6d58367e63f3c7314eb793002e5feb379428.zip gcc-a81a6d58367e63f3c7314eb793002e5feb379428.tar.gz gcc-a81a6d58367e63f3c7314eb793002e5feb379428.tar.bz2 |
re PR fortran/81849 (Size of automatic array argument specified by host-associated variable.)
2019-01-15 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/81849
* resolve.c (resolve_symbol): Host associated varaibles can appear
in the specification statement of a RESULT array.
2019-01-15 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/81849
* gfortran.dg/pr81849.f90: New test.
From-SVN: r267948
Diffstat (limited to 'gcc/fortran/resolve.c')
-rw-r--r-- | gcc/fortran/resolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c index 155e7c9..7fbfa69 100644 --- a/gcc/fortran/resolve.c +++ b/gcc/fortran/resolve.c @@ -15345,7 +15345,7 @@ resolve_symbol (gfc_symbol *sym) /* Set the formal_arg_flag so that check_conflict will not throw an error for host associated variables in the specification expression for an array_valued function. */ - if (sym->attr.function && sym->as) + if ((sym->attr.function || sym->attr.result) && sym->as) formal_arg_flag = true; saved_specification_expr = specification_expr; |