[cfe-dev] Type of enum constants
sebastian.redl at getdesigned.at
Sun Oct 26 04:31:08 PDT 2008
The type of an enum constant expression is currently the underlying type
of the enum (usually int). While this is correct in C, it's incorrect in
C++ and breaks overload resolution.
However, the code for defining enums is complex, with all those
adjustments of the value, and I'm not sure which parts are necessary for
correct functioning. Can someone who knows this code please adjust it so
that in C++, EnumConstantDecl::getType() returns the enum type?
More information about the cfe-dev