[Mono-bugs] [Bug 77205][Nor] New - mcs generates invalid IL for iterators

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jan 10 20:19:40 EST 2006

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


--- shadow/77205	2006-01-10 20:19:40.000000000 -0500
+++ shadow/77205.tmp.10482	2006-01-10 20:19:40.000000000 -0500
@@ -0,0 +1,34 @@
+Bug#: 77205
+Product: Mono: Compilers
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: vargaz at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: mcs generates invalid IL for iterators
+Testcase: test-iter-06.cs
+Running PEVerify on this, it prints:
+[IL]: Error: [E:\share\test-iter-06.exe : S+<Get>__0::MoveNext][offset
+0x00000044][found value 'S'][expected readonly address of value 'S']
+Unexpected type on the stack.
+1 Error Verifying test-iter-06.exe
+The problem is this:
+	  IL_003c:  ldarg.0 
+	  IL_003d:  ldfld  valuetype S S/'<Get>__0'::'<>THIS'
+	  IL_0042:  ldc.i4.s 0x0a
+	  IL_0044:  stfld  int32 S::j
+Here, ldfld should be ldflda

More information about the mono-bugs mailing list