Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=76644 --- shadow/76644 2005-11-07 16:34:01.000000000 -0500 +++ shadow/76644.tmp.25842 2005-11-07 16:34:01.000000000 -0500 @@ -0,0 +1,49 @@ +Bug#: 76644 +Product: Mono: Compilers +Version: unspecified +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: C# +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: [GMCS] Compiler/runtime assertion while compiling code + +The following program makes the runtime produce an assert: + + + public class Set<Element> { + protected readonly Node[] sub; + public Set () { } + public struct Locator { + public delegate void Replace (Node node); + public Locator (Replace put) { } + } + public class Node : Set<Element> { + } + protected Locator locate (Element x) { + Set<Element> parent = this; + return new Locator( + new Locator.Replace(delegate (Node n) { + parent.sub[0] = n; + })); + } + } + static class SetTest { + static void Main (string[] args) { + } + } + +This produces: + +** ERROR **: file metadata.c: line 2935 (mono_type_size): assertion failed: +(!gclass->generic_class.inst->is_open) +aborting... +Aborted _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
