[Mono-bugs] [Bug 36025][Nor] New - incorrect code when accessing a field in a valuetype instance method

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
21 Dec 2002 13:12:04 -0000


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 lupus@ximian.com.

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

--- shadow/36025	Sat Dec 21 08:12:04 2002
+++ shadow/36025.tmp.20218	Sat Dec 21 08:12:04 2002
@@ -0,0 +1,38 @@
+Bug#: 36025
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: lupus@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: incorrect code when accessing a field in a valuetype instance method
+
+This may be related to 
+http://bugzilla.ximian.com/show_bug.cgi?id=35128 and to
+http://bugzilla.ximian.com/show_bug.cgi?id=35358, so make sure thet fix
+doen't break those cases.
+This is code from the mandelbrot.cs file (Qt# test program by marcus).
+using System;
+public struct Complex {
+        private double re, im;
+        public Complex (double re, double im) {
+                this.re = re;
+                this.im = im;
+        }
+        public override string ToString ()
+        {
+                return this.re.ToString () + "+" + this.im.ToString () + "i";
+        }
+        static void Main() {}
+}
+
+The code generated for ToString is incorrect (check with PEVerify).