Tobias and Aleksander,
With gfortran 4.4.0 as of 2008-03-28 (133678) it fails ("0, 0") while with the 2008-04-03 (133863) version it works ("-1, -1").
Assuming that my tree did not include any relevant patch, it must have been fixed between these versions, however, I
cannot find any Fortran patch which does this.
The only relevant patch that I can see is on April 19th - my fix for
PR35959. This was applied to 4.3 as well. It also falls out of the
revision range that you mention.
Note: The the original dump (-fdump-tree-original) of gfortran 4.3.0 (of openSUSE) and 4.4.0 (of today) is identical!
Thus it might be a middle-end problem.
As this is a nasty bug, one should consider narrowing down the patch which fixed it. Then one can backport it to 4.3.0.
(I glanced also at the middle-end ChangeLog, but could not find anything obvious.)
Indeed it is a nasty bug. Strangely my trunk and 4.3 both give the
same, correct result.
gcc version 4.3.1 20080428 (prerelease) (GCC)
and
gcc version 4.4.0 20080502 (experimental) (GCC)
Both on Cygwin/i686
Puzzled
Paul