On Sat, 25 Mar 2000, Randolph Chung wrote: > In several instances, apt has definitions where a variable name is the same > as a type definition (usually an enum). For example, in orderlist.h, there's
This, is a bug in the compiler as far I can see. Consider that C itself has many such constructs, like 'struct stat' vs 'stat'. In fact, in C enum/struct are somewhat seperate namespaces from the variable/function space. C++ aliases them together with a precidence. I think it is obvoisly a compiler bug due to the way it reports the error, notice it does not say duplicate definition at the enum but instead gets confused in usage. I do not have a C++ standard so I cannot be sure, but this seems very reasonable. Jason

