[Mono-bugs] [Bug 76287][Wis] New - [GMCS] crashes if a method is
referred as a property
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Sep 29 23:57:42 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 duncan at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76287
--- shadow/76287 2005-09-29 23:57:42.000000000 -0400
+++ shadow/76287.tmp.25067 2005-09-29 23:57:42.000000000 -0400
@@ -0,0 +1,48 @@
+Bug#: 76287
+Product: Mono: Compilers
+Version: 1.0
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: duncan at ximian.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [GMCS] crashes if a method is referred as a property
+
+Expected:
+
+Z:\>csc a.cs
+Microsoft (R) Visual C# 2005 Compiler version 8.00.50215.44
+for Microsoft (R) Windows (R) 2005 Framework version 2.0.50215
+Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
+
+Z:\a.cs(14,17): error CS0446: Foreach cannot operate on a 'method group'. Did
+ you intend to invoke the 'method group'?
+
+Actual:
+
+diphthong:/tmp $ gmcs a.cs
+Exception caught by the compiler while compiling:
+ Block that caused the problem begin at: a.cs(6,21):
+ Block being compiled: [Internal(1,1):,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 <0x000ea> Mono.CSharp.Foreach:Resolve (Mono.CSharp.EmitContext ec)
+in <0x001b6> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext ec)
+in <0x001b6> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext ec)
+in <0x001b6> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext ec)
+in <0x001b6> 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