dotgnu-pnet
[Top][All Lists]
Advanced

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

[Pnet-developers] [bug #4197] cscc allows conversions that can cause ove


From: nobody
Subject: [Pnet-developers] [bug #4197] cscc allows conversions that can cause overflows without the checked clause
Date: Sat, 05 Jul 2003 01:07:58 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826

=================== BUG #4197: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4197&group_id=353

Changes by: Rhys Weatherley <address@hidden>
Date: Sat 07/05/2003 at 05:07 (GMT)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
              Status | Open                      | Closed


------------------ Additional Follow-up Comments ----------------------------
Fix committed to CVS - 5 July 2003



=================== BUG #4197: FULL BUG SNAPSHOT ===================


Submitted by: tum                     Project: DotGNU Portable.NET          
Submitted on: Sat 07/05/2003 at 01:10
Category:  None                       Severity:  5 - Major                  
Bug Group:  None                      Resolution:  Fixed                    
Assigned to:  None                    Status:  Closed                       

Summary:  cscc allows conversions that can cause overflows without the checked 
clause

Original Submission:  The program below compiles fine with cscc but csc gives 
this error:

testcscc.cs(8,12): error CS0221: Constant value '2148735297' cannot be 
converted to a 'int'
        (use 'unchecked' syntax to override)

using System;
using System.Collections;

public class Test
{
        public static void Main()
        {
                int x = (int)0x80131941;
        }
}

Follow-up Comments
*******************

-------------------------------------------------------
Date: Sat 07/05/2003 at 05:07       By: rweather
Fix committed to CVS - 5 July 2003


CC list is empty


No files currently attached


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4197&group_id=353

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



reply via email to

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