This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/61234] Warn for use-stmt without explicit only-list.
- From: "Joost.VandeVondele at mat dot ethz.ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 20 May 2014 18:32:26 +0000
- Subject: [Bug fortran/61234] Warn for use-stmt without explicit only-list.
- Auto-submitted: auto-generated
- References: <bug-61234-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61234
Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Joost.VandeVondele at mat dot ethz
| |.ch
--- Comment #2 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> ---
(In reply to Dominique d'Humieres from comment #1)
> IMO such a warning will generate zillions of useless diagnostics, especially
> on codes factored such that most of, if not all, the public objects are
> supposed to be used.
of course, such a code doesn't need to enable the warning.
Our code base has the rule that use statements must list explicitly what
symbols are imported, I believe this is very useful (for example, it documents
from where a symbol is actually coming). Such a warning (together with
-Werror), would make it easier to automatically enforce that rule.