[Mono-bugs] [Bug 82622][Nor] New - Internal compiler error (NullReferenceException)

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Aug 29 06:55:37 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 frederik.carlier at ugent.be.

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

--- shadow/82622	2007-08-29 06:55:37.000000000 -0400
+++ shadow/82622.tmp.30521	2007-08-29 06:55:37.000000000 -0400
@@ -0,0 +1,77 @@
+Bug#: 82622
+Product: Mono: Compilers
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: frederik.carlier at ugent.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Internal compiler error (NullReferenceException)
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+When compiling the attached code (which isn't supposed to compile), the
+compiler crashes: "Interna compiler error" (sic).
+
+Steps to reproduce the problem:
+1. gmcs Bug.cs -r:System.Data
+
+Actual Results:
+Bug.cs(140,25): error CS1503: Argument 2: Cannot convert type `void' to
+`object'
+Exception caught by the compiler while compiling:
+   Block that caused the problem begin at: Bug.cs(11,34):
+                     Block being compiled: [Bug.cs(134,67):,Bug.cs(136,25):]
+System.NullReferenceException: Object reference not set to an instance of
+an object
+Interna compiler error at Bug.cs(11,34):: exception caught while emitting
+MethodBuilder [Test::GetPeriodApptsTable]
+
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+  at Mono.CSharp.IndexerAccess.DoResolveLValue (Mono.CSharp.EmitContext ec,
+Mono.CSharp.Expression right_side) [0x00000] 
+  at Mono.CSharp.ElementAccess.DoResolveLValue (Mono.CSharp.EmitContext ec,
+Mono.CSharp.Expression right_side) [0x00000] 
+  at Mono.CSharp.Expression.ResolveLValue (Mono.CSharp.EmitContext ec,
+Mono.CSharp.Expression right_side, Location loc) [0x00000] 
+  at Mono.CSharp.Assign.DoResolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec,
+ResolveFlags flags) [0x00000] 
+  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.ExpressionStatement.ResolveStatement
+(Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.StatementExpression.Resolve (Mono.CSharp.EmitContext ec)
+[0x00000] 
+  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.For.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.EmitContext.ResolveTopBlock (Mono.CSharp.EmitContext
+anonymous_method_host, Mono.CSharp.ToplevelBlock block,
+Mono.CSharp.Parameters ip, IMethodData md, System.Boolean& unreachable)
+[0x00000] 
+
+Expected Results:
+No internal error
+
+How often does this happen? 
+Always
+
+Additional Information:
+gmcs from SVN


More information about the mono-bugs mailing list