Possible C++ bug: Are C enum tags unsigned?
Fri Jun 9 22:49:00 GMT 2000
According to Eli Zaretskii:
> > 449: else if (index < -TOTAL_KEYWORDS)
> The problem is in your code [...]
Hey, it's not _my_ code. :-) But I get your point.
> The only operations which can meaningfully be used with an enum are
> assignment, equality, and inequality. And you cannot mix enum with
> other data types [...]
But I vaguely recall a rule in ANSI C that enum values decay to int
when you use them. Is my memory being over-specific about the type?
Chip Salzenberg - a.k.a. - <firstname.lastname@example.org>
"I wanted to play hopscotch with the impenetrable mystery of existence,
but he stepped in a wormhole and had to go in early." // MST3K
More information about the Gcc-bugs