[Mono-bugs] [Bug 76917][Nor] New - mcs crashes with explicit
operator usage (converting to/from enum)
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Dec 5 13:16:47 EST 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 eto at shaw.ca.
http://bugzilla.ximian.com/show_bug.cgi?id=76917
--- shadow/76917 2005-12-05 13:16:47.000000000 -0500
+++ shadow/76917.tmp.26561 2005-12-05 13:16:47.000000000 -0500
@@ -0,0 +1,74 @@
+Bug#: 76917
+Product: Mono: Compilers
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: gentoo
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: eto at shaw.ca
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs crashes with explicit operator usage (converting to/from enum)
+
+Description of Problem:
+The mcs compiler (1.1.10) throws an exception when compiling code that uses
+an operator that converts to/from a flags enumeration
+
+
+Steps to reproduce the problem:
+1. compile the attached file (TestCompileError.cs)
+
+Actual Results:
+A NullReferenceException is thrown
+
+
+Expected Results:
+file compiles properly
+
+How often does this happen?
+every time
+
+Additional Information:
+The exception details:
+Exception caught by the compiler while compiling:
+ Block that caused the problem begin at: TestCompileError.cs(62,22):
+ Block being compiled:
+[TestCompileError.cs(66,4):,Internal(1,1):]
+System.NullReferenceException: Object reference not set to an instance of
+an object
+
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+in <0x00014> Mono.CSharp.EmptyCast:.ctor (Mono.CSharp.Expression child,
+System.Type return_type)
+in <0x001ac> Mono.CSharp.Convert:ExplicitConversionCore
+(Mono.CSharp.EmitContext ec, Mono.CSharp.Expression expr, System.Type
+target_type, Location loc)
+in <0x00016> Mono.CSharp.Convert:ExplicitConversion
+(Mono.CSharp.EmitContext ec, Mono.CSharp.Expression expr, System.Type
+target_type, Location loc)
+in <0x0017b> Mono.CSharp.Cast:ResolveRest (Mono.CSharp.EmitContext ec)
+in <0x0003c> Mono.CSharp.Cast:DoResolve (Mono.CSharp.EmitContext ec)
+in <0x000e3> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec,
+ResolveFlags flags)
+in <0x00012> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec)
+in <0x000d7> Mono.CSharp.Assign:DoResolve (Mono.CSharp.EmitContext ec)
+in <0x000e3> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec,
+ResolveFlags flags)
+in <0x00012> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec)
+in <0x00013> Mono.CSharp.ExpressionStatement:ResolveStatement
+(Mono.CSharp.EmitContext ec)
+in <0x0001f> Mono.CSharp.StatementExpression:Resolve
+(Mono.CSharp.EmitContext ec)
+in <0x001bd> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext ec)
+in <0x001bd> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext ec)
+in <0x00122> Mono.CSharp.EmitContext:ResolveTopBlock
+(Mono.CSharp.EmitContext anonymous_method_host, Mono.CSharp.ToplevelBlock
+block, Mono.CSharp.InternalParameters ip, IMethodData md, System.Boolean
+unreachable)
More information about the mono-bugs
mailing list