[Mono-bugs] [Bug 76112][Nor] New - mcs: expression overflow - no line number shown

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Sep 15 05:53:02 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by schwimmlehrer at hotmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=76112

--- shadow/76112	2005-09-15 05:53:02.000000000 -0400
+++ shadow/76112.tmp.6291	2005-09-15 05:53:02.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 76112
+Product: Mono: Compilers
+Version: 1.1
+OS: SUSE 9.2
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: schwimmlehrer at hotmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs: expression overflow - no line number shown
+
+Description of Problem:
+I compile a class which has an integer that is too big. The compiler does
+not show the line number and file of the error, just the error message.
+
+Steps to reproduce the problem:
+1. Create code like this (note: 10000000 should be 10000000L):
+public class Test
+{
+	public static void Main(string[] argv)
+	{
+		long i = 15 * 60 * 10000000;
+	}
+}
+2. Compile using mcs
+
+Actual Results:
+error CS0220: The operation overflows at compile time in checked mode
+Compilation failed: 1 error(s), 0 warnings
+
+Expected Results:
+Test2.cs(8,12): error CS0220: The operation overflows at compile time in
+checked mode
+
+How often does this happen? 
+Always


More information about the mono-bugs mailing list