[Bug fortran/30973] undetected name conflict: variables may be named like modules

dfranke at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Feb 26 16:55:00 GMT 2007



------- Comment #2 from dfranke at gcc dot gnu dot org  2007-02-26 16:54 -------
Tobias, the same happens if the MODULE foo contains anything and the ONLY part
actually lists something. I omitted this to keep the testcase short.

Same problem here:

$> cat foo2.f90
MODULE foo
INTEGER :: x
END MODULE

PROGRAM test_foo
  USE foo, ONLY: x
  INTEGER :: foo
  foo = 1
END PROGRAM


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30973



More information about the Gcc-bugs mailing list