O
Old Wolf
My compiler chokes on the following code:
namespace foo
{
typedef enum E { buz, baz } E;
};
namespace bar
{
using foo::E;
};
(it says "Multiple declaration for enum foo::E").
If I change the typedef to "typedef enum E { buz, baz } F;"
then there is no problem with either "using foo::E" or "using foo::F".
Is this a compiler bug? I am working around it by not typedeffing
the enums (They were in a header file which was to be used from both
C and C++).
namespace foo
{
typedef enum E { buz, baz } E;
};
namespace bar
{
using foo::E;
};
(it says "Multiple declaration for enum foo::E").
If I change the typedef to "typedef enum E { buz, baz } F;"
then there is no problem with either "using foo::E" or "using foo::F".
Is this a compiler bug? I am working around it by not typedeffing
the enums (They were in a header file which was to be used from both
C and C++).