James E Wilson wrote:
William S Fulton wrote:
test.cxx:15: warning: non-local variable ‘::
::Instance’ uses anonymous type
Just grepping the sources for the warning, I find this comment
/* [basic.link]: A name with no linkage (notably, the name of a class
or enumeration declared in
Does anyone know the point of the following warning, introduced with
gcc-4.0:
test.cxx:15: warning: non-local variable ‘::
::Instance’ uses anonymous type
for this code:
namespace {
enum { foo, bar = 10 } Instance;
}
Gcc issues this with default warning levels for enums and classes,
wh