[Mono-bugs] [Bug 74685][Maj] New - error CS8215: Report this: Taking the address of a remapped parameter not supported
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 21 Apr 2005 09:35:35 -0400 (EDT)
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 joe@otee.dk.
http://bugzilla.ximian.com/show_bug.cgi?id=74685
--- shadow/74685 2005-04-21 09:35:35.000000000 -0400
+++ shadow/74685.tmp.19855 2005-04-21 09:35:35.000000000 -0400
@@ -0,0 +1,45 @@
+Bug#: 74685
+Product: Mono: Compilers
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: joe@otee.dk
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: error CS8215: Report this: Taking the address of a remapped parameter not supported
+
+Mono 1.1.6 fails compailing this.
+error CS8215: Report this: Taking the address of a remapped parameter not supported
+
+If PassStruct is changed to a class it compiles fine.
+
+using System;
+using System.Collections;
+
+class CompileBug
+{
+ struct PassStruct
+ {
+ public float t;
+ };
+
+ static void Main ()
+ {
+ PassStruct test;
+ test.t = 0F;
+ DoIterator (test);
+ }
+
+ static IEnumerator DoIterator (PassStruct test)
+ {
+ yield return test.t;
+ }
+};