Bugzilla – Bug 318704
[GMCS] runtime fails on a specific chain of generic method calls
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by nazgul@omega.pl 2005-08-10 14:13:32 MST ---- Please fill in this template when reporting a bug, unless you know what you are doing. Description of Problem: I got an assertion from runtime on specific pattern of generic methods calls. It is occuring also in Nemerle generated code, so it seems to be a runtime bug. Steps to reproduce the problem: 1. Compile and run public class Map <b> { b x; public a Fold1 <a> (a ini) { return ini; } public c Fold<c> (c ini) { Fold1 <b> (x); return ini; } } public class LocalContext { Map <string> locals = new Map <string> (); public a Fold <a> (a acc) { return locals.Fold (acc); } } class M { static void Main () { LocalContext x = new LocalContext (); x.Fold ("a" ); } } Actual Results: ** ERROR **: file metadata.c: line 1827 (mono_metadata_parse_generic_param): assertion failed: (generic_container && !generic_container->is_method) aborting... Expected Results: clear run How often does this happen? Always Additional Information: This pattern occurs only once in our codebase, so we can easily create an workaround. But it would be nice to have it fixed :-) ---- Additional Comments From miguel@ximian.com 2005-08-23 13:37:09 MST ---- Martin, this is very similar to the monodis issue, can you look at it? ---- Additional Comments From martin@ximian.com 2005-09-27 14:24:15 MST ---- Fixed in SVN; added gtest-204.cs. Unknown bug field "cf_op_sys_details" encountered while moving bug <cf_op_sys_details>mono svn</cf_op_sys_details> Unknown operating system unknown. Setting to default OS "Other".