On Thu, Mar 12, 2009 at 5:36 PM, Diego Novillo <dnovi...@google.com> wrote: > The temptation is to use C++'s limits, but I'm concerned that may > produce confusion somewhere down the line with the optimizers or other > diagnostics. Or should we use C's notion and treat them as ints?
The limits are a language-specific thing that the front end should check for. But from the point of view of the middle-end, an enum value is just a number. So IMHO: Use ints. Gr. Steven