[Mono-bugs] [Bug 42175][Nor] New - [mini] problem inlining constructors

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Wed, 30 Apr 2003 16:24:57 -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 vargaz@freemail.hu.

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

--- shadow/42175	Wed Apr 30 16:24:57 2003
+++ shadow/42175.tmp.6952	Wed Apr 30 16:24:57 2003
@@ -0,0 +1,42 @@
+Bug#: 42175
+Product: Mono/Runtime
+Version: unspecified
+OS: Debian Woody
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: vargaz@freemail.hu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [mini] problem inlining constructors
+
+The following testcase causes a segmentation fault when running
+with --optimize=inline:
+
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+using System;
+
+class proba {
+
+	proba () {
+	}
+
+	static proba resolve() {
+		return true ? null : new proba();
+	}
+
+	public static void Main(string[] args) {
+	    Console.WriteLine (proba.resolve ());
+	}
+}
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+
+The problem is in the resolve() method: the code generated for the
+ldnull opcode does not set the temporary which holds the return value of
+the method.