There are lots of (GNU extensions) intrinsics that are hardcoded as returning integer(kind=4) results, while it would make sense to have them return the default integer type. This is hardcoded both in the front-end (see for example gfc_resolve_getpid in iresolve.c) and the library (where the getpid function is declared as "extern GFC_INTEGER_4 PREFIX(getpid) (void)").
-- Summary: Use default integer kind instead of hardcoding kind=4 Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fxcoudert at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28208