http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59107
Bug ID: 59107 Summary: Spurious "Type specified for intrinsic function 'command_argument_count' at (1) is ignored" under -Wsurprising. Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: minor Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mathewc at nag dot co.uk > cat test.f90 Program p Integer :: nargs Intrinsic :: command_argument_count nargs = command_argument_count() End > gfortran --version GNU Fortran (GCC) 4.8.2 20131017 (Red Hat 4.8.2-1) > gfortran -Wsurprising test.f90 test.f90:3.37: Intrinsic :: command_argument_count 1 Warning: Type specified for intrinsic function 'command_argument_count' at (1) is ignored