[Mono-bugs] [Bug 76957][Nor] Changed - compiler crash with anonymous methods

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jan 19 01:23:16 EST 2006

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 miguel at ximian.com.


--- shadow/76957	2006-01-17 01:40:05.000000000 -0500
+++ shadow/76957.tmp.26762	2006-01-19 01:23:16.000000000 -0500
@@ -75,6 +75,26 @@
 * Alternatively, eliminate "topmost" and turn that into an arraylist
 of linked scopes (peers), but this will complicate plenty of other
 pieces of code.
+------- Additional Comments From miguel at ximian.com  2006-01-19 01:23 -------
+These are some further ideas on how to fix this bug.
+The routine to fix is AddLocal in anonymous.cs, but this routine and
+its side effects are complicated because it tries to maintain the
+hierarchy of ScopeInfos updates as calls are made to AddLocal (this
+happens in a few places elsewhere as well).
+It might be better to just record all the ScopeInfos as they are
+required and once all the ScopeInfos/blocks are tracked, then we can
+link the ScopeInfos.
+At the top of the CaptureContext we will have a list of ScopeInfos
+(the toplevel scopeinfos, those which dont have a nesting relationship
+between them).
+Without this change, fixing the bug becomes harder as we need to link
+all the toplevel ScopeInfos to the CaptureContext parent (for nested
+anonymous methods).

More information about the mono-bugs mailing list