Bugzilla – Bug 318279
[GMCS] Generic methods contain invalid context when JIT emits method call in them
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by nazgul@omega.pl 2005-06-15 16:05:53 MST ---- Please fill in this template when reporting a bug, unless you know what you are doing. Description of Problem: Mono runtime crashes when JITing (?) generic method Steps to reproduce the problem: 1. compile tlib.cs with gmcs public class lis <a> {} public class M { public static lis <a> Rev <a> (lis <a> x) { return x; } public static lis <b> MapFromArray<a, b> (a[] x) { return M.Rev (new lis <b>()); } } 2. compile t.cs with gmcs t.cs -r:tlib.dll class A { static void Main () { M.MapFromArray <int, string> (new int[] { }); } } 3. run mono t.exe Actual Results: ** ERROR **: file metadata.c: line 1813 (mono_metadata_parse_generic_param): assertion failed: (index < generic_container->type_argc) Expected Results: clear run How often does this happen? Always Additional Information: this is the current blocker for nemerle bootstrap... ---- Additional Comments From martin@ximian.com 2005-06-15 16:16:29 MST ---- Set Priority back to Blocker, why was this Wishlist ??? ---- Additional Comments From martin@ximian.com 2005-06-17 09:54:38 MST ---- Fixed in SVN; added gtest-168-lib.cs and gtest-168.cs. Unknown bug field "cf_op_sys_details" encountered while moving bug <cf_op_sys_details>mono svn 15.06.2005</cf_op_sys_details> Unknown operating system unknown. Setting to default OS "Other".