[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pnet-developers] Should this code compile or now ?

From: Rhys Weatherley
Subject: Re: [Pnet-developers] Should this code compile or now ?
Date: Tue, 3 Jun 2003 14:41:20 +1000
User-agent: KMail/1.4.3

On Tuesday 03 June 2003 02:24 pm, Rhys Weatherley wrote:

> Good luck trying to fix this - you'll probably have to make the operators
> modal with an ILGenInfo flag for "evaluating an enum constant".  Ick!

Actually, an easier way to fix this may be in the lvalue code that fetches 
constants (the call to FieldToConstant in SemToLRValue).  If the compiler is 
in the "evaluating an enumerated constant value" mode, then return the 
underlying type in the CSSemValue, not the enumerated type (this is around 
line 578 of

That will probably be better than hacking every operator to recognise 
enumerated values as integers.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]