[Bug c++/41970] Unjustified "anonymous type" warning
redi at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Nov 6 15:48:00 GMT 2009
------- Comment #4 from redi at gcc dot gnu dot org 2009-11-06 15:48 -------
Or rather,
static enum {a, b, c} A = a;
namespace {
static enum {d, e, f} D = d;
}
In any case, the warning is telling you that an object with external linkage
cannot be referred to in other translation units, so external linkage may not
be appropriate
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41970
More information about the Gcc-bugs
mailing list