re PR fortran/62106 (Adding a scalar variable to an array constructor gives wrong...
authorThomas Koenig <tkoenig@gcc.gnu.org>
Thu, 14 Aug 2014 18:52:12 +0000 (18:52 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Thu, 14 Aug 2014 18:52:12 +0000 (18:52 +0000)
commitba8aa6fca60d3db6375b5f2c1ca6ab57d5ba97da
treec05298e642e4da5fff2ed70900313cdb25f9d8c4
parentbc0229f9f6929e000bc638e26fcd25ff0e95b2ed
re PR fortran/62106 (Adding a scalar variable to an array constructor gives wrong result)

2014-08-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/62106
* gfortran.h (symbol_attribute):  Add fe_temp flag.
* frontend-passes.c (is_fe_temp):  New function.
(create_var):  Don't add a temporary for an already
created variable or for a constant.
(combine_ARRAY_constructor):  Remove special handling
for constants.

2014-08-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/62106
* gfortran.dg/array_constructor_49.f90:  New test.

From-SVN: r213980
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/fortran/gfortran.h
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/array_constructor_49.f90 [new file with mode: 0644]