------- Comment #3 from kargl at gcc dot gnu dot org  2008-11-14 20:54 -------
(In reply to comment #2)
> It's not a bug in my program. It's a bug in NONMEM VI. That is, assuming that
> /dev/tty and /dev/null are files, which they're not. They're devices.

OK, then it's a bug in NONMEM VI.  Submit a bug report to the NONMEM VI
developers.  I cited both the Fortran 77 and Fortran 95 standards, which
show that this is nonconforming code.  Feel free to send my email to them.
You can also tell the NONMEM VI developers that once a unit number is
opened, it is global to entire program.

Under the Unix idiom, /dev/tty and /dev/null are (special) files.
Try 'man 4 null' and 'man 4 tty' on your Redhat box.

> Regardless, it's code that runs in an older version that doesn't run
> in a new version. This problem will cause people to use the old version
> of the compiler.

Well, no.  The code never ran with an older version of gfortran unless
an older version of gfortran had a bug that permitted it.

gfortran and g77 are not the same compiler.  While gfortran tries to
provide backwards compatibility with g77, the author of g77 made several
questionable choices with violating the Fortran 77 Standard.  gfortran
follows the Standards.  Hopefully, "this problem will cause people to"
fix their code.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38122

Reply via email to