[Mono-bugs] [Bug 81938][Nor] New - Implicit cast from char to double crashes compiler

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Jun 23 04:54:58 EDT 2007


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 marek.sieradzki at gmail.com.

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

--- shadow/81938	2007-06-23 04:54:58.000000000 -0400
+++ shadow/81938.tmp.21693	2007-06-23 04:54:58.000000000 -0400
@@ -0,0 +1,46 @@
+Bug#: 81938
+Product: Mono: Compilers
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: marek.sieradzki at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Implicit cast from char to double crashes compiler
+
+Description of Problem:
+Compiler crashes after trying to do a weird implicit cast (from char to double)
+
+Steps to reproduce the problem:
+1. 'make' in olive/class/Microsoft.JScript.Compiler
+
+Actual Results:
+Compiler crash
+
+Expected Results:
+No errors
+
+How often does this happen? 
+Always
+
+Additional Information:
+
+Conversion error happened in line
+Microsoft.JScript.Compiler/Tokenizer.cs(552,63):
+
+Unhandled Exception: System.Exception: LookupConstantValue: This should
+never be reached System.Char System.Double
+  at Mono.CSharp.Constant.ConvertImplicitly (System.Type type) [0x00057] in
+/home/marek/pkg/svn/mcs/mcs/constant.cs:106 
+  at Mono.CSharp.Convert.ImplicitConversionStandard
+(Mono.CSharp.EmitContext ec, Mono.CSharp.Expression expr, System.Type
+target_type, Location loc) [0x0011d] in
+/home/marek/pkg/svn/mcs/mcs/convert.cs:1349


More information about the mono-bugs mailing list