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: "burnus 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:47:57 -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 #1 from burnus at gcc dot gnu dot org 2007-02-26 16:47 -------
I checked: " USE foo, ONLY:" is syntactically correct.
The problem is that "only_flag = 1;" and no symbol is in the only-list.
I think one needs to modify module.c's "read_module", but I fail quickly to see
were the symbol "foo" is not added/deleted from the symbol tree.
All other compilers I tried (g95,ifort,nagf95,sunf95) gave an error.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |accepts-invalid
Last reconfirmed|0000-00-00 00:00:00 |2007-02-26 16:47:56
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30973