This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Bug parsing C++ enum declarations


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

}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]