http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57469
Bug ID: 57469 Summary: Erroneous warning for unused dummy arguments used in namelist Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: vladimir.fuka at gmail dot com This code: subroutine read_command_line(line,a,b) character(*),intent(in) :: line intent(inout) :: a,b namelist /cmd/ a,b read(line,nml = cmd) end produces this warning with gfortran-4.8 20130509: gfortran warning.f90 -c -Wall warning.f90:1.38: subroutine read_command_line(line,a,b) 1 Warning: Unused dummy argument 'a' at (1) warning.f90:1.40: subroutine read_command_line(line,a,b) 1 Warning: Unused dummy argument 'b' at (1) For intent(out) it produces: Warning: Dummy argument 'a' at (1) was declared INTENT(OUT) but was not set But i understand it may be correct.