[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
Fri Aug 15 20:48:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62106
--- Comment #5 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Fri Aug 15 20:47:30 2014
New Revision: 214038
URL: https://gcc.gnu.org/viewcvs?rev=214038&root=gcc&view=rev
Log:
2014-08-15 Thomas Koenig <tkoenig@gcc.gnu.org>
Backport from trunk
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-15 Thomas Koenig <tkoenig@gcc.gnu.org>
Backport from trunk
PR fortran/62106
* gfortran.dg/array_constructor_49.f90: New test.
Added:
branches/gcc-4_9-branch/gcc/testsuite/gfortran.dg/array_constructor_49.f90
Modified:
branches/gcc-4_9-branch/gcc/fortran/ChangeLog
branches/gcc-4_9-branch/gcc/fortran/frontend-passes.c
branches/gcc-4_9-branch/gcc/fortran/gfortran.h
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list