This is the mail archive of the
mailing list for the GCC project.
Re: [Ada] Avoid doing arithmetics in ENUMERAL_TYPE
On Thu, Apr 23, 2009 at 3:42 PM, Eric Botcazou <email@example.com> wrote:
>> Btw, this change seems to have fixed the type-verification issues
>> I ran into (and for which I added a kludge in the verifier - now removed).
> Great. :-) ?In my opinion arithmetics on ENUMERAL_TYPE/BOOLEAN_TYPE should be
> verboten in the middle-end - if you want to do arithmetics, use INTEGER_TYPE.
Yes. Or even better do not have the ENUMERAL_TYPE and BOOLEAN_TYPE
distinction in the middle-end at all (just for debug information).