[patch, fortran] Fix PR 62106
Thomas Koenig
tkoenig@netcologne.de
Thu Aug 14 17:41:00 GMT 2014
Hello world,
the attached patch fixes the regression by making sure we never
try to create a temporary variable from a temporary variable,
which happened in the wrong order.
Regression-tested. OK for trunk and 4.9?
2014-08-19 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-19 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/62106
* gfortran.dg/array_constructor_49.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p3.diff
Type: text/x-patch
Size: 2535 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20140814/d2d38d68/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: array_constructor_49.f90
Type: text/x-fortran
Size: 501 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20140814/d2d38d68/attachment-0001.bin>
More information about the Fortran
mailing list