[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bugs #10058] cscc bug with enums and the bitwise OR o
From: |
Gopal.V |
Subject: |
[Pnet-developers] [bugs #10058] cscc bug with enums and the bitwise OR operator | for integral types |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 |
This mail is an automated notification from the bugs tracker
of the project: DotGNU Portable.NET.
/**************************************************************************/
[bugs #10058] Latest Modifications:
Changes by:
Gopal.V <address@hidden>
'Date:
Thu 09/09/2004 at 15:43 (Asia/Calcutta)
What | Removed | Added
---------------------------------------------------------------------------
Resolution | None | Fixed
Status | Open | Closed
------------------ Additional Follow-up Comments ----------------------------
Fixed in CVS 9th Sept 2004
/**************************************************************************/
[bugs #10058] Full Item Snapshot:
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=10058>
Project: DotGNU Portable.NET
Submitted by: 0
On: Wed 08/18/2004 at 23:26
Category: None
Severity: 5 - Average
Item Group: None
Resolution: Fixed
Privacy: Public
Assigned to: None
Status: Closed
Summary: cscc bug with enums and the bitwise OR operator | for integral types
Original Submission: Compiling the following with cscc version 0.6.8 produces
an error.
****** Test.cs ******
using System;
public class Test
{
public enum Foo
{
TabFocus = 0x1,
NoFocus = 0,
StrongFocus = TabFocus | ClickFocus | 0x8,
WheelFocus = StrongFocus | 0x4,
ClickFocus = 0x2
}
public static void Main (String[] args)
{
Console.WriteLine ("test");
}
}
****** Error by cscc ******
test.cs:9: invalid operands to binary `|'
test.cs:9: constant value required
test.cs:10: invalid operands to binary `|'
test.cs:10: constant value required
****** Expected result ******
Should compile without any errors.
Follow-up Comments
------------------
-------------------------------------------------------
Date: Thu 09/09/2004 at 15:43 By: Gopal.V <t3rmin4t0r>
Fixed in CVS 9th Sept 2004
-------------------------------------------------------
Date: Thu 09/09/2004 at 14:38 By: Gopal.V <t3rmin4t0r>
The ECMA spec does not mention enum initializers as a special case, while Enum
'|' Int is invalid in normal expressions.
For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=10058>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/