This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR 60414: Patch proposal


> I was contracted to fix some issues listed in the bugtracker for fortran.

GREAT! For how long? What will be your strategy to pick bugs among the
765 ones?

> I have to apologize for the incomplete patch: The testcase
> unlimited_polymorphism_18.f90 was missing. My fault. Please find the corrected
> patch attached.

While your test is suitable for visual inspection, it is not for the automated
test suite: the results should be compared to the expected ones and the executable
should abort if there is any mismatch. For instance

write (*, *) "???"

should be replaced with

call abort

(or abort(), abort (), ..., there are variations in the test suite).
Replacing the other 'write (*,...' will be slightly more difficult.
For 'FWriteArr' this can be done with something such as

if(any(X /= (/ 0, 1, 2, 3, 4, 5 /)) call abort

For 'FWrite' it will probably needed to pass the expected value of X.
Although I have tested your patch, I did not try to fix the test (so
the above is untested).

Last point, the second line of your comment in fortran/interface.c
could be improved: I have read it several time and still does not
fully understand it.

Cheers,

Dominique


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]