diff options
author | Mikael Morin <mikael@gcc.gnu.org> | 2015-05-16 08:09:52 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2015-05-16 08:09:52 +0000 |
commit | e24ba4ab129b4506c413831c3392d47119482c22 (patch) | |
tree | 7b9dec81021cac5ea71da5192b1c5d992cc8ca68 /gcc/fortran/scanner.c | |
parent | 30a5d3e6185a5fa01aec283ae9efe8b739dffdf9 (diff) | |
download | gcc-e24ba4ab129b4506c413831c3392d47119482c22.zip gcc-e24ba4ab129b4506c413831c3392d47119482c22.tar.gz gcc-e24ba4ab129b4506c413831c3392d47119482c22.tar.bz2 |
2015-05-16 Mikael Morin <mikael@gcc.gnu.org
Paul Thomas <pault@gcc.gnu.org>
PR fortran/65792
* trans-expr.c (gfc_trans_subcomponent_assign): Always assign
the expression component to the destination. In addition, if
the component has allocatable components, copy them and
deallocate those of the expression, if it is not a variable.
The expression is fixed if not a variable to prevent multiple
evaluations.
2015-05-16 Mikael Morin <mikael@gcc.gnu.org>
PR fortran/65792
* gfortran.dg/derived_constructor_components_5: New test
From-SVN: r223234
Diffstat (limited to 'gcc/fortran/scanner.c')
0 files changed, 0 insertions, 0 deletions