------- Comment #4 from dfranke at gcc dot gnu dot org 2010-05-01 20:34 ------- Whole-file checking does not catch this (yet). I'd think that it should be possible to generate a warning here.
$> $ gfortran-svn -Wall -W -fwhole-file pr34260.f pr34260.f:1.22: SUBROUTINE SUB(A,I) 1 Warning: Unused dummy argument 'a' at (1) gcc version 4.6.0 20100501 (experimental) (GCC) -- dfranke at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dfranke at gcc dot gnu dot | |org OtherBugsDependingO| |40011 nThis| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34260