http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56994
Bug #: 56994 Summary: Incorrect documentation for Fortran NEAREST intrinsic function Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: trivial Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: spam.brian.tay...@gmail.com The GNU Fortran documentation** for the Fortran intrinsic function NEAREST(X,S) says that S is an optional argument. It is not optional according to the Fortran standard. It is implemented correctly in gfortran, so this is only an error in the documentation. ** http://gcc.gnu.org/onlinedocs/gcc-4.8.0/gfortran/NEAREST.html