Bugzilla – Bug 320159
[GMCS] ves_icall_MonoType_get_DeclaringMethod abort during compilation
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by horst.reiterer@mind-breeze.com 2006-01-26 11:35:17 MST ---- The following testcase fails to compile with Mono 1.1.13's gmcs, the runtime aborts. MethodClass defines a method 'Get' with an out parameter. GenericMethodClass provides a similar method, it is generic however. Invoking 'Get' on an instance of GenericMethodClass (FAILURE must be defined) causes the runtime to abort. If the target method is not generic, compilation succeeds. Compiling the same testcase with Microsoft's csc succeeds aswell. using System; public class TestClass { } public class MethodClass { public void Get(out TestClass test) { test = new TestClass(); } }; public class GenericMethodClass { public void Get<T>(out T test) where T : new() { test = new T(); } }; public class Test { public static void Main(string[] args) { TestClass unassigned; #if FAILURE GenericMethodClass cl = new GenericMethodClass(); #else MethodClass cl = new MethodClass(); #endif cl.Get(out unassigned); } }; Steps to reproduce the problem: 1. gmcs -define:FAILURE testcase.cs Actual Results: ** ERROR **: file icall.c: line 2394 (ves_icall_MonoType_get_DeclaringMethod): assertion failed: (method) aborting... Aborted Expected Results: Successful compilation How often does this happen? 100 out of 100 times ---- Additional Comments From vargaz@gmail.com 2006-01-26 12:10:39 MST ---- -> mcs ---- Additional Comments From rharinath@novell.com 2006-01-29 14:50:56 MST ---- Should be fixed in SVN r56228. Unknown bug field "cf_op_sys_details" encountered while moving bug <cf_op_sys_details>Red Hat Enterprise Linux 4</cf_op_sys_details> Unknown bug field "cf_version_details" encountered while moving bug <cf_version_details>1.1.13</cf_version_details> Unknown operating system other. Setting to default OS "Other".