[Top][All Lists]
[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: |
Fri, 04 Jul 2003 21:10:18 -0400 |
User-agent: |
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; MyIE2; .NET CLR 1.0.3705; .NET CLR 1.1.4322) |
=================== BUG #4197: FULL BUG SNAPSHOT ===================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4197&group_id=353
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: None
Assigned to: None Status: Open
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;
}
}
No Followups Have Been Posted
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/
- [Pnet-developers] [bug #4197] cscc allows conversions that can cause overflows without the checked clause,
nobody <=