diff options
author | Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de> | 2005-05-11 16:52:51 +0200 |
---|---|---|
committer | Tobias Schlüter <tobi@gcc.gnu.org> | 2005-05-11 16:52:51 +0200 |
commit | 09e7f68631c07f882a1294d4f00c5cf19498786e (patch) | |
tree | 93b690b02e38975caed6d3a50fc5044c5bb9879b /gcc/fortran/trans-expr.c | |
parent | 9d48ad93c63357e68bdc7ac9fdf23d470eee6ee2 (diff) | |
download | gcc-09e7f68631c07f882a1294d4f00c5cf19498786e.zip gcc-09e7f68631c07f882a1294d4f00c5cf19498786e.tar.gz gcc-09e7f68631c07f882a1294d4f00c5cf19498786e.tar.bz2 |
resolve.c (resolve_symbol): Copy 'pointer' and 'dimension' attribute from result symbol to function symbol.
fortran/
* resolve.c (resolve_symbol): Copy 'pointer' and 'dimension'
attribute from result symbol to function symbol.
testsuite/
* gfortran.dg/func_result_2.f90: New test.
From-SVN: r99580
Diffstat (limited to 'gcc/fortran/trans-expr.c')
-rw-r--r-- | gcc/fortran/trans-expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/trans-expr.c b/gcc/fortran/trans-expr.c index 35c3f12..52a532d 100644 --- a/gcc/fortran/trans-expr.c +++ b/gcc/fortran/trans-expr.c @@ -1288,7 +1288,7 @@ gfc_conv_function_call (gfc_se * se, gfc_symbol * sym, if (!se->direct_byref) { - if (sym->result->attr.dimension) + if (sym->attr.dimension) { if (flag_bounds_check) { |