Comparing enums
Todd Veldhuizen
todd@p200.cybervision.com
Sun Sep 7 06:44:00 GMT 1997
Is the diagnostic for this code necessary? Enums provide a useful
workaround for compilers which don't support member constants.
enum X { a = 3 };
enum Y { b = 4 };
bool z = a > b;
09:43:44 bugs [2132] xgcc bug18.cpp
bug18.cpp:5: warning: comparison between `enum X' and `enum Y'
--
Todd Veldhuizen todd@cybervision.com
Homepage: http://monet.uwaterloo.ca/~tveldhui/
More information about the Gcc-bugs
mailing list