[Patch, fortran] PR32613 - [4.3 regression] Different results depending on unnecessary variable declaration
Paul Richard Thomas
paul.richard.thomas@gmail.com
Wed Jul 4 20:29:00 GMT 2007
:ADDPATCH fortran:
This is another regression that I set off. I take it to be urgent,
since it came up on comp.lang.fortran.
The PR and the patch speak for themselves. The testcase is the reporter's.
Regtested on Cygwin_NT/amd64.
I will commit this at the same time as PR32526, as obvious, unless
there are any objections overnight.
Now to get on with the character patches that I promised I would:-)
Paul
PS I realise that I am telling a lie. The PR and the patch do not
speak for temselves completely. I should have said that the do-loop
index in the contained function 'internal' was the cause of the
trouble, since it was getting labeled as an implicit do loop iterator
variable. This led the reference to 'i' in the call of the statement
function to generate a local declaration.
2007-07-04 Paul Thomas <pault@gcc.gnu.org>
PR fortran/32613
* match.c (gfc_match_do): Reset the implied_index attribute.
2007-07-04 Paul Thomas <pault@gcc.gnu.org>
PR fortran/32613
* gfortran.dg/do_iterator_2.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr32613.diff
Type: application/octet-stream
Size: 1551 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070704/839617a2/attachment.obj>
More information about the Fortran
mailing list