[Mono-bugs] [Bug 360796] Internal compiler error with large methods

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Feb 11 18:39:18 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=360796

User cmarshall at pacificbiosciences.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=360796#c1





--- Comment #1 from Casey Marshall <cmarshall at pacificbiosciences.com>  2008-02-11 16:39:18 MST ---
Note that if I split the offending method up into pieces, then call each piece,
the error isn't triggered. So this fails:

  protected override void OnLoad(EventArgs e)
  {
    // ~200 lines
  }

But this does not:

  protected override void OnLoad(EventArgs e)
  {
    OnLoad1(e);
    OnLoad2(e);
    OnLoad3(e);
  }

  void OnLoad1(EventArgs e)
  {
    // some stuff...
  }
  void OnLoad2(EventArgs e)
  {
    // more stuff...
  }
  void OnLoad3(EventArgs e)
  {
    // the rest of the stuff...
  }

I have not experimented with what the limit is. It's approximately split into
thirds.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list