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.