[Mono-list] bug in mcs and more.

Miguel de Icaza miguel@ximian.com
01 Apr 2002 13:07:25 -0500


Ravi,

> The following code doesn't compile 
>         public enum FL 
>         { 
>             EMPTY = 0, 
>             USHIFT = 11, 
>             USER0 = (1<<(USHIFT+0)), 
>             USER1 = (1<<(USHIFT+1)), 
>             USER2 = (1<<(USHIFT+2)), 
>             USER3 = (1<<(USHIFT+3)), 
>             USER4 = (1<<(USHIFT+4)), 
>             USER5 = (1<<(USHIFT+5)), 
>             USER6 = (1<<(USHIFT+6)), 
>             USER7 = (1<<(USHIFT+7)), 
>             UMASK = (0xff<<USHIFT), 
>             SINGLETON = USER0, 
>             FINALIZE = (1<<7), 
>             TAINT = (1<<8), 
>             EXIVAR = (1<<9), 
>             FREEZE = (1<<10), 
>         } 

I tracked the above down, and the problem is that the first USHIFT is
not being resolved to an EnumConstant, but rather to a FieldExpr.  I
think this is the same problem we had before.

Miguel.