[Bug fortran/62106] [4.9/5 Regression] Adding a scalar variable to an array constructor gives wrong result
tkoenig at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Aug 14 18:52:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62106
--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Thu Aug 14 18:52:12 2014
New Revision: 213980
URL: https://gcc.gnu.org/viewcvs?rev=213980&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gfortran.dg/array_constructor_49.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/frontend-passes.c
trunk/gcc/fortran/gfortran.h
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list