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 [EMAIL PROTECTED]

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

--- 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: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+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
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to