This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30973] undetected name conflict: variables may be named like modules
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Feb 2007 16:54:46 -0000
- Subject: [Bug fortran/30973] undetected name conflict: variables may be named like modules
- References: <bug-30973-13648@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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