[PATCH] PR fortran/68053 -- Reduce initialization expression to constant value
Paul Richard Thomas
paul.richard.thomas@gmail.com
Mon Nov 9 05:38:00 GMT 2015
Dear Steve,
Thanks for beavering away on these front-end issues.
OK for trunk
Paul
On 8 November 2015 at 23:37, Steve Kargl
<sgk@troutmask.apl.washington.edu> wrote:
> On Sun, Nov 08, 2015 at 02:35:58PM -0800, Steve Kargl wrote:
>> The attached patch has been built and regression tested
>> on i386-*-freebsd and x86_64-*-freebsd. If an array
>> index in an initialization expression is an array element
>> from an array named constant, the array index needs to be
>> reduced. This patch causes the reduction to occur.
>> OK to commit?
>>
>> 2015-11-08 Steven g. Kargl <kargl@gcc.gnu.org>
>>
>> PR fortran/68053
>> * decl.c (add_init_expr_to_sym): Try to reduce initialization expression
>> before testing for a constant value.
>>
>> 2015-11-08 Steven g. Kargl <kargl@gcc.gnu.org>
>>
>> PR fortran/68053
>> * gfortran.dg/pr68053.f90: New test.
>
> Now with the patch attached!
>
> --
> Steve
--
Outside of a dog, a book is a man's best friend. Inside of a dog it's
too dark to read.
Groucho Marx
More information about the Gcc-patches
mailing list