Bug 312257 (MONO42175) - [mini] problem inlining constructors
Summary: [mini] problem inlining constructors
Status: RESOLVED FIXED
Alias: MONO42175
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: unspecified
Hardware: Other Debian Woody
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-30 23:24 UTC by Zoltan Varga
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:09:23 UTC


---- Reported by vargaz@freemail.hu 2003-04-30 16:24:55 MST ----

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.



---- Additional Comments From lupus@ximian.com 2003-05-02 12:38:01 MST ----

Added a temporary workaround in cvs.



---- Additional Comments From dietmar@ximian.com 2003-06-02 06:33:50 MST ----

correct fix is already in cvs