bugDotGNU Portable.NET - Bugs: bug #4197, cscc allows conversions that can...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #4197: cscc allows conversions that can cause overflows without the checked clause

Submitted by:  Thong Nguyen <tum>
Submitted on:  Sat 05 Jul 2003 01:10:18 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sat 05 Jul 2003 05:07:58 AM UTC, comment #1:

Fix committed to CVS - 5 July 2003

Rhys Weatherley <rweather>
Project Administrator
Sat 05 Jul 2003 01:10:18 AM UTC, 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;
}
}

Thong Nguyen <tum>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 05 Jul 2003 05:07:58 AM UTCrweatherStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1