------- Comment #22 from jvdelisle at gcc dot gnu dot org 2007-03-20 02:20 ------- Error 5001 would be ERROR_OPTION_CONFLICT. There are 18 different errors associated with that code. To find out which one, you must remove the iostat from the offending line so that gfortran will print the error message for you.
Another option is to use iomsg and get the string. You can access the code base at gcc.gnu.org/viewcvs or better, download with anonymous svn. See instructions here: http://gcc.gnu.org/svn.html. If you do the svn approach, its very simple to get latest update and you are a few keystrokes from building it yourself. :) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31052