This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Bug parsing C++ enum declarations
- To: gcc at gcc dot gnu dot org
- Subject: Bug parsing C++ enum declarations
- From: Sam Lantinga <slouken at devolution dot com>
- Date: Thu, 18 Oct 2001 22:14:42 -0700
The attached source code generates an error with gcc 3.01 and the
latest CVS code.
Is this illegal? Is there a fix planned?
Thanks,
-Sam Lantinga, Software Engineer, Blizzard Entertainment
enum foo {
a,
};
namespace One {
enum foo {
b,
};
}
using namespace One;
namespace Two {
#if 1
enum foo {
c,
};
#else
typedef enum {
c,
} foo;
#endif
}