Re: gcc-4.0 non-local variable uses anonymous type warning

2005-05-09 Thread William S Fulton
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

gcc-4.0 non-local variable uses anonymous type warning

2005-04-24 Thread William S Fulton
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