Is this really the right location for the error pointer?

Brooks Moses bmoses@stanford.edu
Tue Oct 10 19:02:00 GMT 2006


When testing out the STAT example (to make sure I hadn't mucked up the 
formatting, I got the following error (due to the fact that "staterr" 
was implicitly declared as real):

---------------------------------------------------------------------
~/temp> ~/gcc-trunk/bin/gfortran test_stat.f90 -o test_stat.exe
  In file test_stat.f90:5

   CALL STAT("/etc/passwd", statarr, status)
                          1
Error: 'values' argument of 'stat' intrinsic at (1) must be INTEGER
---------------------------------------------------------------------

It took me a couple of false starts to realize that that "1" was 
intended to be pointing at the _second_ variable, and not the first one. 
   Would it be possible to bump it a spot to the right, after the comma, 
to make this clearer?

(Should I file a PR about this?)

- Brooks



More information about the Fortran mailing list