Bug 319476 (MONO76644) - [GMCS] Compiler/runtime assertion while compiling code
Summary: [GMCS] Compiler/runtime assertion while compiling code
Status: RESOLVED FIXED
Alias: MONO76644
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-07 23:34 UTC by Miguel de Icaza
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:37:15 UTC


---- Reported by miguel@ximian.com 2005-11-07 16:34:01 MST ----

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



---- Additional Comments From miguel@ximian.com 2005-11-07 23:27:08 MST ----

*** https://bugzilla.novell.com/show_bug.cgi?id=MONO76601 has been marked as a duplicate of this bug. ***


Unknown operating system unknown. Setting to default OS "Other".