Bugzilla – Bug 312257
[mini] problem inlining constructors
Last modified: 2007-09-15 21:24:46 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