http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46846
Summary: Warning of AINT as actual argument ain't right Product: gcc Version: 4.6.0 Status: UNCONFIRMED Keywords: diagnostic, documentation, wrong-code Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: bur...@gcc.gnu.org http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/8ac296b9404b3245 lnblnk is a GNU extension. char, ichar, int, and len_trim are also rejected by other compilers. Currently, gfortran prints the warning Warning: Interface mismatch in dummy procedure 'fun' at (1): '%s' has the wrong number of arguments for the intrinsics aint, anint, index, len and nint. "13.6 Specific names for standard intrinsic functions" Specic Name Generic Name Argument Type and Kind AINT AINT default real ANINT ANINT default real INDEX INDEX default character LEN LEN default character NINT NINT default real The problem is that all those functions have an optional KIND= argument - which, however, is not included in the specific functions (as backward compatibility to Fortran 77). Thus, the warning is bogus - but another question is whether this can lead to wrong code by not passing NULL as second argument. I have not checked, but maybe the documentation should also be improved (cf. James' posting to c.l.f)