diff options
author | Tobias Burnus <burnus@net-b.de> | 2013-06-14 13:24:27 +0200 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2013-06-14 13:24:27 +0200 |
commit | 9d82744163502abea13ff680e9f7e9f5ced3bfaf (patch) | |
tree | a8016d97c1cb33f2f03c3f53a496efefaabe1d84 /gcc/fortran/resolve.c | |
parent | ffe7516f004d3ad9d5453b6c8c42ad23309ec6e0 (diff) | |
download | gcc-9d82744163502abea13ff680e9f7e9f5ced3bfaf.zip gcc-9d82744163502abea13ff680e9f7e9f5ced3bfaf.tar.gz gcc-9d82744163502abea13ff680e9f7e9f5ced3bfaf.tar.bz2 |
re PR fortran/57508 ([OOP] Intrinsic assignment+defined-assignment for comps: PROCEDURE attribute of '_F.DA0' conflicts with VARIABLE attribute)
2013-06-14 Tobias Burnus <burnus@net-b.de>
PR fortran/57508
* resolve.c (get_temp_from_expr): Don't copy function
result attributes to temporary.
2013-06-14 Tobias Burnus <burnus@net-b.de>
PR fortran/57508
* gfortran.dg/defined_assignment_7.f90: New.
From-SVN: r200089
Diffstat (limited to 'gcc/fortran/resolve.c')
-rw-r--r-- | gcc/fortran/resolve.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c index b2e8fdc..2788994 100644 --- a/gcc/fortran/resolve.c +++ b/gcc/fortran/resolve.c @@ -9295,6 +9295,10 @@ get_temp_from_expr (gfc_expr *e, gfc_namespace *ns) /* Add the attributes and the arrayspec to the temporary. */ tmp->n.sym->attr = gfc_expr_attr (e); + tmp->n.sym->attr.function = 0; + tmp->n.sym->attr.result = 0; + tmp->n.sym->attr.flavor = FL_VARIABLE; + if (as) { tmp->n.sym->as = gfc_copy_array_spec (as); |