$> cat foo.f90 MODULE foo END MODULE PROGRAM test_foo USE foo, ONLY: INTEGER :: foo foo = 1 END PROGRAM
$> gfortran-svn -g -Wall foo.f90 && echo ok ok $> gfortran-svn -v gcc version 4.3.0 20070220 (experimental) If ", ONLY:" is removed in the USE, gfortran gives: foo.f90:6.16: INTEGER :: foo 1 Error: Symbol 'foo' at (1) cannot have a type -- Summary: undetected name conflict: variables may be named like modules Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dfranke at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30973