[Patch, fortran] PR44354 implied-do-loop array constructors using the induction variable in the bounds
Mikael Morin
mikael.morin@sfr.fr
Sat Jul 21 10:16:00 GMT 2012
On 20/07/2012 22:03, Mikael Morin wrote:
> On 20/07/2012 20:16, Mikael Morin wrote:
>> I have started a regression test.
>> OK for trunk if it passes?
>>
> Unfortunately, it fails with errors like:
>
> /home/mik/gcc4x/src/gcc/testsuite/gfortran.dg/char_pack_1.f90:55.10:
>
> do i = i + 1, nv
> 1
> Warning: AC-IMPLIED-DO initial expression references control variable at
> (1)
>
> FAIL: gfortran.dg/char_pack_1.f90 -O3 -fomit-frame-pointer (test for
> excess errors)
Here is another attempt.
I moved the diagnostic code from gfc_resolve_iterator to
resolve_array_list, so that it doesn't trigger for do loops.
Regression test in progress. OK?
Mikael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ac_diagnostic_5.diff
Type: text/x-patch
Size: 3485 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120721/35de9318/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: array_constructor_38.f90
Type: text/x-fortran
Size: 557 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120721/35de9318/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ac_runtime_5.diff
Type: text/x-patch
Size: 3150 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120721/35de9318/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: array_constructor_39.f90
Type: text/x-fortran
Size: 401 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120721/35de9318/attachment-0003.bin>
More information about the Gcc-patches
mailing list