http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49025
Summary: gfortran bug: Local variable does not hide generic procedure. Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: david.sa...@gmail.com Consider the following test code: ----------------------------------- module test interface kick subroutine a_kick end subroutine end interface contains subroutine my_sub implicit none integer kick call some_sub(kick) end subroutine end module ---------------------------------- Compiling gives: lnx4103:~/dcs/bmad_distribution/test_build> gfortran --version GNU Fortran (GCC) 4.5.1 Copyright (C) 2010 Free Software Foundation, Inc. lnx4103:~/dcs/bmad_distribution/test_build> gfortran -c test.f90 test.f90:13.16: call some_sub(kick) 1 Error: GENERIC procedure 'kick' is not allowed as an actual argument at (1) The local "kick" variable is not hiding the "kick" generic procedure. This code compiles with ifort v9 and v12.